On 03/17/2012 01:55 PM, François REMY wrote:
Wouldn't it be better to use 'as' for guards? Seems more intuitive and
easier to type
let A as Number = 3;
let B as Email = "[email protected]";
class ListNode {
public nextNode as ListNode;
public value; // no guard
}
However, it is'nt a reserved keyword. But I don't think anybody sane
would use 'as' as a variable name. Additionnaly, we could also require
'use guards' like we are going to require 'use fn'.
I'm pretty sure most mainly Haskell programmers doing JS would think
about using `as' (and `bs', `cs', ..., `xs') as identifiers almost
naturally. And I guess they would also feel it natural to use `::' for
guards. But well, this is not Haskell :3
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss