Closed bates64 closed 7 years ago
Is there any advantage to requiring a "main" procedure at all?
It provides a natural place to put the starting code.
It provides a natural place to put the starting code.
You could put the main
procedure anywhere, no?
to main do /* it's at the top now! */
this()
end
to this do
display(25)
end
If you can support it, just make Haumea a scripting language (i.e. the main function is everything not within a procedure)!
Even if main is a block, it doesn't necessarily have to be a function. What about something like
on entry do
display("Hello, world!")
end
How about this?
when started do
display(1)
end
"when" says 'event' to me. Could we add events to the standard library (async!)
When you think about it, the program starting is basically an event. As far as other events go, sure.
Although
main
in C makes sense, here (since Haumea seems very english-like) it doesn't make much sense- perhapscould work better as a starting procedure?