Hacker News new | ask | show | jobs
by ReleaseCandidat 947 days ago
You're right, there actually are more. Interesting, I "feel" the opposite.

Haskell (55 + some more, because of the grouping): https://wiki.haskell.org/Keywords

F# https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...

OCaml: https://v2.ocaml.org/manual/lex.html#sss:keywords

Python: https://github.com/python/cpython/blob/3.12/Lib/keyword.py

Java (I think these are the current ones): https://docs.oracle.com/javase/tutorial/java/nutsandbolts/_k...

1 comments

A few of the Haskell ones are introduced by extensions, so they're not part of the language proper.
Yes, I know. Same for OCaml with PPXs. That was just to show that even Haskell has many, even though most operators aren't keywords but "normal" infix functions (of type classes).
> even though most operators aren't keywords but "normal" infix functions

yes, that is also important to mention