3 ms·
Python's "semantic whitespace" is syntax that gives meaning to a common pattern in code. Most code that way by convention anyway. If that pattern has meaning
by Goladus 16y ago
Python's "semantic whitespace" is syntax that gives meaning to a common pattern in code. Most code that way by convention anyway. If that pattern has meaning then curly braces can be used for something else (in python's case: dictionary literals).
Hope it makes more sense now, even if you don't prefer that style.
- sabat 16y agoIt makes logical sense (i.e. I understood the meaning of the whitespace-delineated blocks). I'm really just saying I don't prefer the style.