Comment on proportional reaction

<- View Parent
PeriodicallyPedantic@lemmy.ca ⁨1⁩ ⁨day⁩ ago

Hey, when you gotta pick a value from a bunch of options, it’s either if/elseif/else, ternary, switch/case, or a map/dict.

Ternary generally has the easiest to read format of the options, unless you put it all on one line like a crazy person.

source
Sort:hotnewtop