Well, using 'a' as an identifier is already bad practice. Using 'as' has a plural form of 'a' seems even worse. But, well, okay, if it happens in reality, it happens, I can't say anything else about that.


-----Message d'origine----- From: Herby Vojčík
Sent: Saturday, March 17, 2012 9:33 PM
To: François REMY
Cc: Brendan Eich ; Allen Wirfs-Brock ; es-discuss
Subject: Re: Let's replace <| with :: (was Breaking up the <|...)



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

If I would be in the scenarios where I have some a's and b's
(collections) where I would count how many a's and b's follow some
consition, I would use 'as' and 'bs' as the identifier...
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to