I'm not a Go user, but is the important idea here that it can be run from a scriptingish environment like Jupyter or something?
Do any notebooks support a compiled language?
11–20 of 64 posts
I'm not a Go user, but is the important idea here that it can be run from a scriptingish environment like Jupyter or something?
Do any notebooks support a compiled language?
This is very cool! I wonder what the chances of this being pulled into Go proper is, and whether the lack of cgo is an intractable issue, which would rule it out entirely.
foo()? // for goplus
try(foo()) // the go proposal
https://github.com/golang/go/issues/32437IMHO these conveniences should just be in the language. List comprehensions, dictionary comprehensions, and short-hand for literals are the kind of syntactic sugar that have almost no downsides, save you some RSI, and make code more readable. I'm surprised comprehensions in particular haven't spread to more modern languages.
I hope this succeeds and forces some changes.
Nice! Coming from Python, I miss being able to use the normal arithmetic operators on bigints in Go.
Neugram [1] aimed to make Go a better scripting tool, but unfortunately it seems the project is dead. Although Go+ says its focus is on data science, I think it could fill this niche too.
By the way: does Go+ have shebang support?
IMHO these conveniences should just be in the language. List comprehensions, dictionary comprehensions, and short-hand for literals are the kind of syntactic sugar that have almost no downsides, save you some RSI, and make code more readable. I'm surprised comprehensions in particular haven't spread to more modern languages.
Comprehensions become unreadable quite quickly - even simple ones have to be read inside-out, and complex (especially nested) ones are much worse.
Most modern languages seem to prefer functional-style methods like `map`, `filter` etc, which are more readable in all but the simplest cases.
I love the idea of main-less Go scripts for times where you just want to do something simple, fast. Neugram [1] aimed to make Go a better scripting tool, but unfortunately it seems the project is dead. Although Go+ says its focus is on data science, I think it could fill this niche too. By the way: does Go+ have shebang support? 1: https://github.com/neugram/ng