Re: . or : for namespace?

new topic     » goto parent     » topic index » view thread      » older message » newer message

> On 5 May 2008 at 15:07, Derek Parnell wrote (maybe snipped):

> Without knowledge gained from other arts of a source code file, the
> following statement is visually ambiguous...
> 
>     if foo.bar = 1
> 
> What is 'foo'?
> 
>     if foo:bar = 1
> 
> Now it is obvious that 'bar' is declared in another source file.
> 
> The argument with respect to ease of typing can also be applied to
> other often used Euphoria syntax elements, such as the double-quote,
> tilde, dollar and brace-pair, not to mention the widely used '<', '>',
> '(', ')',  and '%' characters. But that argument isn't actively used
> against these characters so why use it against ':'?
> 

Derek's "disambiguation" made a point here. So, I'm about to change 
my vote for the dot. It was a conditional vote, anyway. ;)

Best,
Euler

-- 
_
_| euler f german
_| sete lagoas, mg, brazil
_| efgerman{AT}gmail{DOT}com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu