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
Name of the method? Might be better to have a free function instead of associated method, but then there's no good name for it that wouldn't overlap with the existing process::exit. As a postfix verb it's sorta clunky, or maybe doesn't communicate explicitly with what the process is being exited? I think exit_process strikes a good balance but I discussed it more in the impl PR ExitCode::exit_process() method #95356.
Feature gate:
#![feature(exitcode_exit_method)]This is a tracking issue for the
ExitCode::exit_process()method.exit_code.exit_process()exits the process with theExitCodepassed as the self argument.Public API
Steps / History
Unresolved Questions
process::exit. As a postfix verb it's sorta clunky, or maybe doesn't communicate explicitly with what the process is being exited? I think exit_process strikes a good balance but I discussed it more in the impl PR ExitCode::exit_process() method #95356.