Y
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
kazinator
599 days ago
Or where it produces an effect (or effect group) in every case just before returning, without multiple effects interspersed among multiple condition tests.
link
fenomas
598 days ago
That's isomorphic to what I said, so... also yes :D
link