Not coalescing around None-aware
Not coalescing around None-aware
Posted Dec 25, 2022 22:34 UTC (Sun) by mtaht (subscriber, #11087)In reply to: Not coalescing around None-aware by smurf
Parent article: Not coalescing around None-aware
I'm not kidding btw. I'd really like it if more code looked like the math, and an IDE would make it as easy as α, β, Γ. The Δ between well known symbols and their overly verbose english equivalents would increase visual density.
Posted Jan 15, 2023 18:08 UTC (Sun)
by sammythesnake (guest, #17693)
[Link]
> for x ∈ Y
(which you can also spell "for x in Y" if you prefer)
and groks "≠" & "≥" as alternate spellings of "!=" & ">=" and so on. ("🫖≠☕" might be perfectly valid code :-P)
The REPL, Jupyter notebooks, and IDEs with support all expand LaTeX escapes for you (e.g. "\in[tab]" becomes "∈" and similarly for all the fun Greek letters / logic symbols / alchemical symbols / emojis etc.) so you don't need a fancy million-key keyboard :-D (Or you can map right-Alt to the compose key if you like)
Personally, I don't have a mathematics background and find many of these symbols somewhat opaque - it doesn't help that they're difficult to Google (but then so are all the punctuation marks that get so much use in programming language syntax!)
It's also an interesting language in its own right that I'm toying around with...
Not coalescing around None-aware