Single letter type variables are mostly a bad idea, except when they have no semantic meaning. Monoid[A] is ok. StateChange[A, B] is not, I prefer StateChange[Before, After]. Now let's watch as my follower count suddenly starts dropping...
Maybe the reason you're torn is that "left" and "right" look like they have semantic significance, but it's just a decoy. There's almost certainly nothing sinister about anyone's choice for the first type parameter, and you could happily swap them.
-
-
That pun left me speechless
-
It wasn't really intended to be a pun... So I hope using it in a tweet didn't make me look gauche.
- Show replies
New conversation -
-
-
The problem is that I could swap them. Nothing tells me that the first type parameter goes on the left. Calling it Left makes it clear (or fiendishly wrong, if you mislabel them out of pure spite)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.