Live data from Hacker News

iGo: a new Syntax for GoLang

igo.herokuapp.com

1–10 of 94 posts

Re: iGo: a new Syntax for GoLang

#6
I am usually wary of new languages, because they come at a great cost. All the code I've written, libraries I've discovered, standard library I'm used to and take for granted are suddenly gone, and I have to start from scratch. On the plus side, the new language may have desirable aspects that are improved.

However, this is not that. Despite looking like a different language, in reality, it's just a different _interface_ to writing/reading Go. It's completely compatible with all the libraries, tools that work on Go code because it _is_ Go code, simply expressed via a different representation of the Go AST.

I think that is a really nice way to experiment with the positive aspects of new languages/syntaxes. Nicely done!

Re: iGo: a new Syntax for GoLang

#9

For some reason I find this less readable than the original syntax. I couldn't say why, as I quite like Python or Coffeescript.

I can't say that I find it less readable... but it is only marginally better for me. I'd rather just use a decent editor which takes care of the braces for me.

Re: iGo: a new Syntax for GoLang

#10
No. Go is beautifully straightforward and blatantly obvious as to what is going on. Don't start hiding scopes behind tabs or magically creating variables referencing structs.

Plus, with all these changes, this syntax saved 5 lines of code, most of which were simply closing braces, and brought no greater clarity. In fact, I'd argue it's probably pretty easy to mess up scope in the iGo example and never know it.

Post reply on HN