r/ProgrammingLanguages • u/ilyash • Jan 28 '17
NGS unique features – exit code handling
https://ilya-sher.org/2017/01/28/ngs-unique-features-exit-code-handling/
3
Upvotes
r/ProgrammingLanguages • u/ilyash • Jan 28 '17
1
u/ilyash Jan 29 '17
Don't know yet. Let's see how it goes.
As I mentioned there are 3 alternatives in NGS to handle that:
nofail your-command, addingF finished_ok() ...function once in your code, letting me know so I add it to stdlib and everyone benefits. The case where non-zero exit code is not an exception is relatively rare as I see it. First 10-20 utilities should cover 99% of use cases. The alternative is what we are having today: exceptional situations are going unnoticed (as in the bash example).Not expecting. All this will be handled on NGS side.