On Saturday, November 16, 2002, at 04:52  PM, Damian Conway wrote:

	if $moe|$larry|$curly == $hurt {...}     # i.e. any of them hurt

and:

	if $moe|$larry|$curly != $hurt {...}     # at least one not hurt


and also between:

	if $moe&$larry&$curly == $hurt {...}     # all hurt

and:

	if $moe&$larry&$curly != $hurt {...}     # none hurt
Although I admit I don't mind the lack of space on either side of the C<|> operator, it bugs me with the C<&> operator. Couldn't C<&$larry> in the above snippet dereference a code reference? I really hope that, stylistically, we'll more often see code like this:

if $damian | $larry | $dan == $hurt {...} # i.e. any of them hurt

if $damian & $larry & $dan == $hurt {...} # all hurt

Regards,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]

Reply via email to