Why is there no or or and ?
Timon Gehr
timon.gehr at gmx.ch
Fri Feb 17 04:49:47 PST 2012
On 02/17/2012 08:44 AM, F i L wrote:
>
> Yep! Though, I like D's '~' as append operator for arrays. Though I i'm
> not sure this wouldn't work better:
>
> a, b: [1, 2, 3, 4, 5]
>
> a += b[2] // appends b[0] to a
> a[] += b[2] // adds b[0]'s value to all of a
>
'+' means addition! Concatenation is not even commutative. Having '+'
mean concatenation is operator abuse.
> Seeing as how your right, '~' means "about" in math.
>
It means "proportional", or "similar". What you want is \approx.
More information about the Digitalmars-d
mailing list