Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Juerd Waalboer
Thomas Wittek skribis 2007-05-14 22:20 (+0200): But I think that the name of an identifier (noun/verb, single/plural, the meaning of the word) already gives enough context to understand what type it is. So is user_id a variable or a type? How about substring or document? Is new a function, or

Re: Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Jonathan Lang
Good examples. Now could you provide some to explain to me why it's important to distinguish between '$', '@', '%', and ''? I ask because I've seen a lot of object-based code that has said stuff like '$container{$key}'; it seems that there's an assumption that $foo can be used as a list, a

Re: Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Mark J. Reed
On 5/14/07, Jonathan Lang [EMAIL PROTECTED] wrote: Good examples. Now could you provide some to explain to me why it's important to distinguish between '$', '@', '%', and ''? I ask because I've seen a lot of object-based code that has said stuff like '$container{$key}'; Well,

Re: Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Juerd Waalboer
Jonathan Lang skribis 2007-05-14 14:52 (-0700): Good examples. Now could you provide some to explain to me why it's important to distinguish between '$', '@', '%', and ''? It's useful code self documentation, but not very important, in my opinion. If you have sigils, it makes sense to have

Re: Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Jonathan Lang
Mark J. Reed wrote: Jonathan Lang wrote: Good examples. Now could you provide some to explain to me why it's important to distinguish between '$', '@', '%', and ''? I ask because I've seen a lot of object-based code that has said stuff like '$container{$key}'; Well, $container{$key} is