Hacker News new | ask | show | jobs
by talideon 3802 days ago
Whatever method you take, whether it's a special case after reading a line, or some other weird hack, you're adding magic.

With Ruby, this isn't a big deal because if `exit` is a function, then typing `exit` will call it, and you need to use the unary `&` to bypass this and have the callable treated the same way that Python does (which is roughly equivalent to a Ruby Proc).

Ruby doesn't require the hack, but Python would, for better or worse.