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

Programmer Humor

32050 readers
1352 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 10 months 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 18 points 10 months 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.

[–] meteokr@community.adiquaints.moe 8 points 10 months ago

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

[–] charje@lemmy.ml 1 points 10 months 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.