3 ms·
> For example, in my mind I want to do this: > > (a++ if a==b else b++) + 1 Why? This is absurdly unreadable. Why not create a function, give it a name, and
by mypalmike 4y ago
> For example, in my mind I want to do this:
>
> (a++ if a==b else b++) + 1
Why? This is absurdly unreadable. Why not create a function, give it a name, and use simple if/else constructs. Help the next developer out so they don't need to figure out your tricky expression.