logoalt Hacker News

rob74 • today at 2:35 PM • 2 replies • view on HN

Then you just need a programming language that accepts ≠ as a synonym of !=. But who knows, maybe there is already one?


Replies

daotoad • today at 4:31 PM

Rakulang has you covered.

It is aggressive in its unicode support. You want to use vulgar fractions? Or Mayan numerals? They'll work. You want to use mathematical notation like ∈? It works.

You can literally do this:

`my $var = ⅒ + 2 + Ⅻ;`

https://docs.raku.org/language/unicode_ascii

➕ show 1 reply
cogburnd02 • today at 2:59 PM

Or just pipe your source through a sed script that replaces one with the other before compiling/running.

➕ show 1 reply