this post was submitted on 28 Nov 2024
462 points (88.5% liked)

Programmer Humor

32743 readers
138 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
[–] HiddenLayer555@lemmy.ml 3 points 4 weeks ago (1 children)

also None is another annoying quirk

[–] flux@lemmy.ml 1 points 4 weeks ago (2 children)
[–] HiddenLayer555@lemmy.ml 3 points 3 weeks ago (1 children)

The way it's written. Most programming languages call it null

[–] flux@lemmy.ml 1 points 3 weeks ago

That's pretty low bar for calling something a "quirk". The whole ML family, so OCaml, SML, Haskell, F# and perhaps a the new distant relative Rust call it also it None.

And it's not even the same thing: null means pointer to nothing, while None means no value.