this post was submitted on 12 Dec 2023
879 points (96.5% liked)
Memes
45887 readers
1262 users here now
Rules:
- Be civil and nice.
- Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I don't know a single language that lets you use a name starting with a number for anything off the top of my head
Probably Haskell.
Kinda. You can't define a name, but you can get the compiler to interpret literals as a function. If you have a Num instance for (Integer -> Integer) where,
fromInteger i = \x -> x * i
the compiler can interpret integer literals as functions like so
x = 2(5) :: Integer