37 ms·
I don't understand this concern. How exactly are you copy/pasting code such that significant indentation causes "real problems"? I remember the creators of Go
by nchammas 4mo ago
I don't understand this concern. How exactly are you copy/pasting code such that significant indentation causes "real problems"?
I remember the creators of Go explained [1] that they chose explicit block delimiters because of problems they saw when embedding snippets of Python in other languages. But this seems like a very niche kind of problem.
[1]: https://go.dev/talks/2012/splash.article#:~:text=we%20have%20had%20extensive%20experience%20tracking%20down%20build%20and%20test%20failures%20caused%20by%20cross%2Dlanguage%20builds%20where%20a%20Python%20snippet%20embedded%20in%20another%20language https://go.dev/talks/2012/splash.article#:~:text=we%20have%2...
- bobajeff 4mo agoScope being determined by indention makes it easier to paste things in the wrong scope and not notice.