Thaddee Tyl wrote:
On Thu, Apr 5, 2012 at 7:23 AM, Brendan Eich<[email protected]> wrote:
From http://www.scala-lang.org/node/4723 (hat tip *Corey
Farwell*@*frewsxcv*<https://twitter.com/#%21/frewsxcv>
*
):
|=> ⇒ // 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:
https://gist.github.com/2310485/53ca798220d5d6f28fb4c15035c974b2db1d81d1
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,
for me.
Herby
P.S.: Here's the funny one with for and if replaced as well:
https://gist.github.com/2310485/bc2cb70e411e5ecf0f2e45e78558ff16b2b0be45
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss