Closed littlewhitecloud closed 7 months ago
Several reasons why not:
main()
to exist, and they call it when the program starts. That said, the main function is already a bit magical, because a call to _jou_windows_startup()
(or _jou_macos_startup
) is added implicitly to beginning of main()
._NSGetExecutablePath()
, it cannot be compiled on Windows or Linux, because _NSGetExecutablePath
only exists on MacOS.This feature makes sense for many other languages, but IMO not for Jou.
I see.
As above, it will be super cool and we can write statements outside the main function, and we don't need to care about #383 also #385