A question for people with strong opinions on code-formatting.
Which of these styles do you prefer?
(Poll in next post.)
A question for people with strong opinions on code-formatting.
Which of these styles do you prefer?
(Poll in next post.)
@Edent left-aligned, but without the space to the immediate left of the colon.
Largely because if you fire up Editor X with default settings and format the file, that's what it'll do and I don't fight defaults – because as @knotnicky says, there are bigger fights elsewhere.
@rgarner @Edent @knotnicky This, plus amending any alignment other than a left alignment becomes a right royal PITA if you have to add items with longer keys / properties to the hash / object / dict (delete as applicable).
@gilesdring @rgarner @Edent @knotnicky "centered on separator" looks nice but it has Premature Optimisation energy, like one day it'll all break because you have a key that's too long or something