What piece of syntax has the most different meanings?
I realised today that `as` is extremely overloaded. It can be used for aliasing imports (Python), type casts (Rust), binding pattern match variables (OCaml), type assertions (Hack) and probably many others.
miniblog.
Related Posts
I struggle with dependency syntax. I never remember what ^1.2.3 means or how it differs from ~1.2.3.
I believe both npm and cargo assign the same meanings to this notation, but it's less obvious than e.g. 1.x.
1.2.3 isn't an exact version constraint either!
I'm regularly impressed by just how good Google Translate is.
I wonder if we'll reach a point where translation tools replace foreign language dictionaries for language learners? A dictionary might say a word has 5 meanings, but a translation tool can consider the context.