Re:Austral Programming Language
by badrequest on Thursday July 27, 2023 @04:37PM
(#36899807)
You might, but I don't. In the argument `--entrypoint=Hello:main`, where does `Hello` come from? Is it some root module? What about `main`, is that some default, or the name of a file without an extension? This strikes me as just enough verbosity to be confusing, and not enough to be explicit.
[ Parent
| on HN ]
Re:Austral Programming Language
by beepbooptheory on Thursday July 27, 2023 @04:46PM
(#36899920)
Right above that line in the docs is a pretty clear view of 'Hello' and 'main'. Its a file "hello.aum" which declares a module 'Hello' with a function called 'main'. You compile the file to be an executable by giving it function to run as the entrypoint. This really couldn't be clearer I dont think.