this post was submitted on 14 Nov 2023
183 points (92.2% liked)

Programmer Humor

32453 readers
647 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] meteokr@community.adiquaints.moe 11 points 1 year ago (2 children)

Feel like this joke would work better with TS | JS. Since that's the point of the former. I don't know how rust and ocaml are related?

[–] Knusper@feddit.de 19 points 1 year ago (1 children)

The initial creator of Rust, Graydon Hoare, took lots of inspiration from OCaml. In fact, the first Rust compiler was written in OCaml.

I appreciate that fun fact. The meme now makes more sense.

[–] charje@lemmy.ml 1 points 1 year ago

JS doesn't do any type inference. Ocaml Connor l type checker knows all the types and is completely type safe without type annotations.