Is Using Boolean Arithmetic Like This Ever a Good Idea?
I wrote a single line that chooses between different expressions based on whether `IorC` is equal to `"i"`, `"c"`, or `"s"`: `IorC = IorC**(IorC == "i") + CodedF**(IorC…
I wrote a single line that chooses between different expressions based on whether `IorC` is equal to `"i"`, `"c"`, or `"s"`: `IorC = IorC**(IorC == "i") + CodedF**(IorC…
I wrote a line that chooses between different values based on whether `IorC` is equal to `"i"`, `"c"`, or `"s"`, using Boolean results as arithmetic or multiplication factors:…