Kevin Smith wrote:
That’s why I’m not sure that mixing the two styles is a good idea.
I agree. I'm not a CS user and I personally prefer C-ish syntax, but
I'm perfectly willing to steal ideas that might work.
I'm still hoping that ES.next includes declarative classes, and
according to the strawman
<http://wiki.ecmascript.org/doku.php?id=harmony:classes>, one of the
open issues is syntax for accessing private members. @name might work
well for that.
Slightly off-topic, but for example me, I very hope the classes (as per
the cited strawmen) will _not_ be included, because the syntax is (imo)
bad in principle, creating classes as another special case of {...}
block. (I am a bit paranoic, so I had the urge to show there is
different opinion, too)
And I do not like CS nor C syntax. I'd prefer Smalltalkish one (though I
am not suggesting it, ES is C-derived, so C-derived it should stay).
kevin
Herby
P.S.: I find -> syntaz awkward as well, but I believe it is a matter of
familiarity. Those that are familiar with it from Haskell etc. will
probably have no problem read it; as well as I have little problem to
read {|x, y| x+y} or {:x, :y x+y} as a replacement for function returing
sum of their two arguments...
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss