You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 20, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 20, 2026. It is now read-only.
I'm not sure why it's always a zero. It seems to be intended as an implicit trailing return, but then I'm not sure why it's not emitted as such? (If return is not zero, that's another problem.)
Additionally, it'd be nice if it could be removed for scripts that don't need it. IMO it shouldn't be a default behaviour, in fact.
I'm not comfortable making no return the default, but a command line flag to toggle it would be nice and the 0 should obviously be corrected to a return byte.
Actually, I think such configuration should belong to the file itself, as otherwise it means files aren't self-contained—which I think you'll agree it not great.
Perhaps that should be configured in the env block?
This seems like something that would belong to more "generic" configuration? Maybe some option(noreturn), or option("noreturn") syntax would work well? (I'd suggest porting the pool = syntax to that as well, so that pool is no longer a keyword?)
Activity
evie-calico commentedon Jan 16, 2024
I'm not comfortable making no return the default, but a command line flag to toggle it would be nice and the 0 should obviously be corrected to a return byte.
ISSOtm commentedon Jan 16, 2024
Actually, I think such configuration should belong to the file itself, as otherwise it means files aren't self-contained—which I think you'll agree it not great.
Perhaps that should be configured in the
envblock?evie-calico commentedon Feb 1, 2024
I guess something like this would work:
I'm not sure what to call it though;
noreturnis concise but not necessarily self-explanatory.ISSOtm commentedon Feb 10, 2024
This seems like something that would belong to more "generic" configuration? Maybe some
option(noreturn), oroption("noreturn")syntax would work well? (I'd suggest porting thepool =syntax to that as well, so thatpoolis no longer a keyword?)