Swift style syntax

Michael McGlothlin mike.mcglothlin at gmail.com
Thu Oct 15 21:08:29 UTC 2015


It'd be simple to just define all operators as function​s and the actual
operator is just syntaxial sugar. And then if you wanted to pass the
operator you'd simply pass it's function around like you would any other
function. Even your `Math.['>']` seems far safer than `Math.>` or just `>`
but I'd vote for `Math.greaterThan` as being the best name. Saving a couple
letters of typing isn't worth the price of hours more debugging.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151015/fbc21542/attachment.html>


More information about the es-discuss mailing list