Re: Perl 6.x , please offer PREPEND as well as APPEND
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 31 Jan 2006 06:49:45 -0800
Mr P wrote:
> [1] - every mathmatician or logician has to flinch everytime they
> encounter this syntax. As programmers we understand what it's up to of
> course, but in general terms:
>
> a = b + a
>
> is ONLY true for b=0, (or b='' in the case of a string) which in our
> case is NOT true.
Riight, that's because a mathematician uses = to mean one thing, and
programmers use it to mean something else. If you use the
corresponding operators, the axioms hold just fine:
$a eq $b . $a only for $b equalling '';
$a == $b + $a only for $b equalling 0.
I'm very confused as to what your point is.
Paul Lalli
.
- Follow-Ups:
- Re: Perl 6.x , please offer PREPEND as well as APPEND
- From: A. Sinan Unur
- Re: Perl 6.x , please offer PREPEND as well as APPEND
- References:
- Prev by Date: Re: Substitutions in matched patterns?
- Next by Date: Re: Perl 6.x , please offer PREPEND as well as APPEND
- Previous by thread: Perl 6.x , please offer PREPEND as well as APPEND
- Next by thread: Re: Perl 6.x , please offer PREPEND as well as APPEND
- Index(es):
Relevant Pages
|