Hacker News new | ask | show | jobs
by fenomas 599 days ago
Sure, in the narrow case where the function only calculates a single return value and has no side effects.
1 comments

Or where it produces an effect (or effect group) in every case just before returning, without multiple effects interspersed among multiple condition tests.
That's isomorphic to what I said, so... also yes :D