3 ms·
> How do you decide what is a “niche syntax trick”? You decide with experience. When other people read my code, this is probably the feature that surprises the
by daveFNbuck 8y ago
> How do you decide what is a “niche syntax trick”?
You decide with experience. When other people read my code, this is probably the feature that surprises them most. Other features that they haven't seen before usually make sense from context. This one is surprising enough that I often forget whether it executes if there is a break or if there isn't a break.
When explaining and remembering what the syntax means dwarfs the effort saved by using the syntax, it's a niche syntax trick.