4 ms·
>No, in (almost) all other mainstream languages you have some kind of block-end block-start markers. {} And in many languages, those are optional in certain co
by joshuamorton 9y ago
>No, in (almost) all other mainstream languages you have some kind of block-end block-start markers. {}
And in many languages, those are optional in certain contexts (as someone else mentioned: see heartbleed).
- jacquesm 9y agoYes, and in the 'optional' case the accidents happen, which should be a quiet hint that they should not be optional. if (a == b) do_this() and_always_dothis() ...
- jhasse 9y agoTotally agree. They should never be optional, either force them always or don't have them at all (like Python). Your code example wouldn't confuse anyone in Python as he knows that and_always_dothis() is inside the if.