in reply to Re^2: map problem
in thread map problem

I like the variant with the semicolon best, because it's the most explicit way to say that something should be parsed as a block. Which conveys a clear message to the maintenance programmer: I wanted a block here, and you'd better leave the semicolon there.

Relying on the exact semantics of the disambiguation heuristics doesn't leave any traces in the code that there was a problem, and the unsuspecting maintenance programmer will run into the same problems as you did.

Replies are listed 'Best First'.
Re^4: map problem
by Marshall (Canon) on Mar 09, 2012 at 21:46 UTC
    moritz you are completely right as a "black-belt" language syntax guy. You like the ";" first solution because it fits your thought model of "how it works" - it is "obvious" to you as a expert - but what may be obvious to you may not be obvious to others.