RE: PROTOPROPOSAL FOR NEW BACKSLASH is still Re: implied pascal-l ike"with" or "express"

[email protected] ("Brust, Corwin")
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
</snip>
-----Original Message-----
From: Jonathan Scott Duff [mailto:[email protected]]
Sent: Wednesday, August 23, 2000 1:06 PM
To: David L. Nicol
Cc: Nathan Torkington; [email protected]
Subject: Re: PROTOPROPOSAL FOR NEW BACKSLASH is still Re: implied
pascal-like"with" or "express"
[...]
How special purpose is "with"?  Do people envision using it *only* on
hashes?  (I did until this email)  If so, I like Damian's version best:

http://www.mail-archive.com/[email protected]/msg02649.html
</snip>

Just to see if I have that right...

1:	use strict;
2:	my %foo;
3:	with (%foo) {
4:		first => 10,
5:		second => ^first - 5
6:	}

replaces:

1:	use strict;
2:	my %foo = ( first => 10);
3:	$foo{second} = $foo{first} - 5;

-Corwin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.