Digraphs *and* Unicode pretty-glyphs, for arrows, triangle, etc.
herby at mailbox.sk
Thu Apr 5 05:36:05 PDT 2012
Thaddee Tyl wrote:
> On Thu, Apr 5, 2012 at 7:23 AM, Brendan Eich<brendan at mozilla.org> wrote:
>> From http://www.scala-lang.org/node/4723 (hat tip *Corey
>> |=> ⇒ // implemented
>> <- ← // implemented
>> -> → // implemented
>> == ⩵
>> << ≪
>>> = ≥
>> <= ≤
>> :: ∷|
>> Corey suggested editors could do the input conversion when users type the
>> digraph. If Scala can go here, why not JS?
> ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵
Hey, it's not that bad.
Here's nodejs's lib/path.js log, math and rel replaced:
IMO it is _more_ readable. You see the distinction between == and ===
better (see the first function -- you see the first if is ≈ (not exactly
equal) while the second is ≡ (strictly equal)).
And those nots, ors and ends in math notation are sweet. Much better,
P.S.: Here's the funny one with for and if replaced as well:
More information about the es-discuss