Hacker News new | ask | show | jobs
by sirn 3804 days ago
Slight correction, `exit` in IRB is actually not the same as `Kernel.exit` (as IRB actually allow IRB sessions to be nested, using `Kernel.exit` would quit the whole program rather than just the current session). It is actually an alias of `IRB::ExtendCommandBundle#irb_exit` that throws `IRB_EXIT` to stop the eval loop of the current session and allow some pre-exit hooks to be assigned to it.
1 comments

"Slight correction", good one haha

That said, technically correct is best correct, so here is your upvote!