Implicit encoding conversion on string ~= int ?
Jakob Ovrum
jakobovrum at gmail.com
Tue Jun 25 03:45:10 PDT 2013
On Monday, 24 June 2013 at 05:20:31 UTC, Marco Leise wrote:
> // best way to toggle forth and back between 0 and 1. "!"
> returns a bool.
> value = !value
If you're switching between 0 and 1, chances are you should be
using a bool in the first place.
> // don't ask, I've seen this :)
> arr[someBool]
Ew.
> // sometimes the bool has just the value you need
> length -= boolRemoveTerminator
Ew.
I think it's a big plus that it stops this needless obfuscation.
More information about the Digitalmars-d
mailing list