3 ms·
> What do you mean by a main-less script? probably something that's common in "scripting" languages, where you don't have to wrap your code in main(), it just
by uryga 6y ago
> What do you mean by a main-less script?
probably something that's common in "scripting" languages, where you don't have to wrap your code in main(), it just executes from the top:
myscript.py
-----------
print('hi')
vs
myscript.go
-----------
func main() {
fmt.PrintLn('hi')
}