Ed Mills wrote:
> 
> I disagree with "const" as it's verbose; I'd rather see something like
> $pi=|3.14128 or something similar.

Well, just to counter argue, I feel exactly the opposite way. I'd like
the keyword to be "constant" instead of "const". I've always thought
"const" was a needless save of 3 characters. Constants should be obvious
to pick out. The inventors of UNIX, when asked "What was your biggest
mistake?" replied "Spelling creat() without the 'e'". Ditto here, IMO.

Which is the easiest for anyone to tell what's going on?

   my num $PI : constant = 3.1415926;
   my num $PI : const = 3.1415926;
   my num $PI =| 3.1415926;

Admittedly, "const" is pretty darn close to "constant", so tolerable.
But =| is way too obscure, I think.

-Nate

Reply via email to