this post was submitted on 19 Jun 2025
99 points (86.7% liked)
Programmer Humor
39408 readers
285 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Both of those declarations look weird to me. In Haskell it would be:
... except that makes
boba function taking a tuple and it's much more idiomatic to curry it instead:The
[T]syntax also has a prefix form[] T, so[String]could also be written[] String.OCaml makes the opposite choice. In OCaml, a list of strings would be written
string list, and a set of lists of strings would bestring list set, a list of lists of integersint list list, etc.