RE: PROTOPROPOSAL FOR NEW BACKSLASH was Re: implied pascal-likewith or express

2000-08-23 Thread Brust, Corwin
Correct me if I'm wrong here, but I think what David wanted was an easy way to reference other keys of an hash while creating one, ie: How to do this, in a line: %h = ( first = 10 ); $h{second} = $h{first} * 2; Because, as I'm sure you know, this code (when run w/out strict):

Re: PROTOPROPOSAL FOR NEW BACKSLASH was Re: implied pascal-likewith or express

2000-08-22 Thread Nathan Torkington
Markus Peter writes: use %record{ $\interest_earned += $\balance * $\rate_daily; }; Guys, where in the sweet name of Jesus did this awful syntax come from? For a start, %start{ } is only analogous to a slice operation. It has no precedent in Perl. Normally what you'd

Re: PROTOPROPOSAL FOR NEW BACKSLASH was Re: implied pascal-likewith or express

2000-08-22 Thread Nathan Torkington
David L. Nicol writes: okay but we still have the hiding issue, in case we want it to What's the hiding issue? I must have missed that. $one{two} is $one\two $$one{two}{three} is $one\two\three $$$one{two}{three}{four} is $one\two\three\four Your left

Re: PROTOPROPOSAL FOR NEW BACKSLASH was Re: implied pascal-likewith or express

2000-08-22 Thread Michael Fowler
On Wed, Aug 23, 2000 at 12:17:18AM +, David L. Nicol wrote: Nathan Torkington wrote: The precedent of "if you're doing a hash lookup, use {} around the key" is fairly well-ingrained in Perl. I don't care how "ingrained" the concept of wrapping the field names in curlies is, I still

Re: PROTOPROPOSAL FOR NEW BACKSLASH was Re: implied pascal-likewith or express

2000-08-21 Thread Markus Peter
--On 18.08.2000 14:36 Uhr -0700 David L. Nicol wrote: How about backslash, after the type-qualifier? use %record{ $\interest_earned += $\balance * $\rate_daily; }; I don't really like having backslashes in front of ordinary characters anywhere except when I mean them :-) (\n, \t