> "Where's the likes of David Grove when you need one?"
I don't even know what you're talking about.
Leave me alone. I'm learning Python...
again.
p
>> On Wed, May 30, 2001 at 06:48:53PM +0100, Simon Cozens wrote:
>> Of course, 'sub it():lvalue{$_}' gets you *most* of the benefit.
>
> um, no.
>
>> You see that word? You know what it means?
The "word" you *highlighted* was "of", as in "Of course". A non-sequitor, but your
meaning is cl
On Wed, May 30, 2001 at 06:58:50PM -0500, David L. Nicol wrote:
> > Of course, 'sub it():lvalue{$_}' gets you *most* of the benefit.
> ^^
You see that word? You know what it means?
> I want to buy the code, as listed in the code table, not the food
Simon Cozens wrote:
>
> On Wed, May 30, 2001 at 06:48:53PM +0100, Simon Cozens wrote:
> > *Nice*, but potentially a bugger to implement.
>
> Of course, 'sub it():lvalue{$_}' gets you *most* of the benefit.
um, no.
foreach(@foods){
# okay, I'll try...
ex
of:
1 until defined(getvalue()); return it;
You can already write:
1 until defined($_=getvalue()); return $_;
which doesn't seem a huge extra burden.
Or, if you worry about $_ pollution, use this:
{return $_ for grep{defined or redo} getval()}
Damian
David L. Nicol wrote:
> some expressiveness is gained, and a creation of a temporary variable
> can be avoided.
>
> when $thing is a complex expression, a temporary variable must be
> explicitly assigned. "it" holds the place in my pseudocode.
If you have a complex expression, there's no way to
On Wed, May 30, 2001 at 06:48:53PM +0100, Simon Cozens wrote:
> *Nice*, but potentially a bugger to implement.
Of course, 'sub it():lvalue{$_}' gets you *most* of the benefit.
--
The complex-type shall be a simple-type. ISO 10206:1991 (Extended Pascal)
On Wed, May 30, 2001 at 02:54:27PM -0500, David L. Nicol wrote:
> small incremental improvement to [read|writ]ability
>
> writability:
>
> one less variable name to have to remember not to collide with
I think you have this one backwards. This is one giant, ambiguous
global variable whose valu
On Wed, May 30, 2001 at 02:39:57PM -0500, David L. Nicol wrote:
> ...
> defined $thing and return $thing
> ...
>
> when $thing is a complex expression, a temporary variable must be
> explicitly
> assigned. "it" holds the place in my pseudocode.
Hmmm, if $thing is a complex ex
Buddha Buck wrote:
> Why is [...] better than
>
> 1 until defined($foo=getvalue()); return $foo;
small incremental improvement to [read|writ]ability
writability:
one less thing to write
one less variable name to have to remember not to collide with
readability:
keyword "it" means look at v
Michael G Schwern wrote:
> That aside, could you put together a code example of what this wins?
some expressiveness is gained, and a creation of a temporary variable
can be avoided.
...
defined $thing and return $thing
...
is my working idiom for checking which case
Simon Cozens wrote:
> semantic ambiguity in there if you look hard enough, but
> can't come up with any example off hand.
I think I don't like the proposition that "it"
refer to the most recent *lexically* referenced scalar.
For example, in
$x ? $y : $z;
I think "it" should refer to whichever
Simon Cozens wrote:
> $foo = 5;
> print it + ($bar = 10) + it;
>
> 20 or 25?
or 30?
--
John Porter
On Wed, May 30, 2001 at 02:00:59PM -0400, Buddha Buck wrote:
> I'd be interested in seeing how "it" would be better than what works now.
>
> Why is:
>
> 1 until defined(getvalue()); return it;
>
> better than
>
> 1 until defined($foo=getvalue()); re
On Wed, May 30, 2001 at 06:48:53PM +0100, Simon Cozens wrote:
> *Nice*, but potentially a bugger to implement. I'm also sure you
> can find semantic ambiguity in there if you look hard enough, but
> can't come up with any example off hand.
$foo = 5;
print it + ($bar = 10) + it;
20 or 25?
--
"E
an $_
> > does.
>
>*quiver* Please god no. Its difficult enough to follow the twists and
>abuses of $_ when reading code.
>
>That aside, could you put together a code example of what this wins?
I'd be interested in seeing how "it" would be better than wha
On Wed, May 30, 2001 at 12:38:50PM -0500, David L. Nicol wrote:
> while pseudocoding something I realized that it would be really
> cool if there was another magical default shelf, like $_ or _ but
> subtly different, that stores, if lexically used, the object of the
> most recent "defined" or "e
On Wed, May 30, 2001 at 12:38:50PM -0500, David L. Nicol wrote:
> or maybe even the most recently referred to scalar, just the way
> "it" works in English. "it" would change much more often than $_
> does.
*Nice*, but potentially a bugger to implement. I'm also sure you
can find semantic ambigui
while pseudocoding something I realized that it would be really
cool if there was another magical default shelf, like $_ or _ but
subtly different, that stores, if lexically used, the object of the
most recent "defined" or "exists" --
or maybe even the most recently referred to scalar, just
19 matches
Mail list logo