News for hackers. Stuff that matters.
Re:Blorp Language by bobajeff on Monday June 01, 2026 @08:49AM (#48356138)
I know there are people that are used to the indention based scope but that has a real problem when it comes to copy/pasting code. I think a alternative that still looks pretty clean is to do like Ruby and Julia and have the function/class imply begin and have a literal 'end'.
Re:Blorp Language by nchammas on Monday June 01, 2026 @10:53AM (#48357609)
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%2...

Re:Blorp Language by bobajeff on Monday June 01, 2026 @03:43PM (#48361648)
Scope being determined by indention makes it easier to paste things in the wrong scope and not notice.
Re:Blorp Language by mohragk on Monday June 01, 2026 @09:47AM (#48356826)
Fun fact, in Python, the indentation is checked per block. So, in the outer block, indentation can be 2 spaces, while in the inner block, the indentation is 3 spaces. The only prerequisite is that the indentation in the block is the same.

This, to circumvent copy/paste issues.

Re:Blorp Language by xigoi on Monday June 01, 2026 @09:12AM (#48356393)
If your editor messes up indentation when copy-pasting, you need a better editor.
Re:Blorp Language by Narishma on Monday June 01, 2026 @10:14AM (#48357127)
You paste code in more places than just your editor.