logoalt Hacker News

rtpgtoday at 11:04 AM1 replyview on HN

I remember really bumping up against this learning OCaml in college after having experienced oodles of imperative programming.

I understand the sort of philosophy and ergonomics of not having an early return, but it really does hurt certain kinds of code that otherwise would be more readable


Replies

orthoxeroxtoday at 2:06 PM

> ergonomics of not having an early return

I wonder who came up with this idea first. I find obvious early returns incredibly ergonomic.

show 1 reply