2 ms·
I agree with you on blocks/scoping. If dropping the parens I think Python does it right with its tab-based blocks. Was uninformed about caps. That was a minor
by azinman2 14y ago
I agree with you on blocks/scoping. If dropping the parens I think Python does it right with its tab-based blocks.
Was uninformed about caps. That was a minor point for me, however, and in hindsight I should have at least investigated that before saying something.
Ok I see the consistency in :=, but in that sense I'd personally like to see something closer to Scala where the tuple is explicit by doing something like:
for (k, v) := range m {
Which doesn't look all that much better, mostly because of the := (I've never liked in any lang) and the spacing between range, m, and {.
for (k, v) := range(m) {
Could be yet another way to help make it more clear what is modifying what.
When you're tired and have been starting at code all day long having more visual gestalt in the language helps... syntax highlighting serves much of this but it's better IMHO if the language highlights itself.
- mheathr 14y agoRob Pike made an excellent point in one of his presentations on GO. He pointed out that utilizing a language through a DSL or FFI that utilizes indentation instead of another method makes utilizing that language inside another language more difficult as it is easy to introduce bugs in the host language that are non-obvious to debug based on the indentation being incorrect but not obviously so. I recommend watching all of his videos as they are very illuminating due to his primary focus being that of software engineering rather than theory.