[PATCH 0/4] Speed improvement in fetch/clone
Jan Hudec
bulb at ucw.cz
Fri Jan 20 06:07:16 GMT 2006
On Fri, Jan 20, 2006 at 13:03:11 +1100, Martin Pool wrote:
> > Besides it will only be a 2-line if. The expression is screwed, but IMHO
> > not for using and+or for ternary (I am used to that from other
> > languages (that do have ternary, by the way)), but for:
> > 1) Assigning what is already assigned.
> > 2) Containing redundant terms -- (pb and pb) == pb
>
> Right.
>
> > In languages that have it I'd suggest pb or= ....progress_bar(), but
> > python only supportst augmented assignment for arithmetic operators.
>
> I'm just curious, what language has "assign if the LHS is null"? Perl6?
Yes, Perl6 does. I heared rumors, that it might get added in Perl5 too.
For the others it depends on what they consider false - usually any
object is true, so if the particular variable is null or some specific
object, logical or works well.
--
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060120/499fdc0b/attachment.pgp
More information about the bazaar
mailing list