I actually had a similar Journey. I kept seeing all this FP stuff floating around but never quite understood why or where I would use it.
So I took a (free) online haskell course on edx.org. Which I highly recommend. I don’t want to program haskell, but I wanted to learn FP and how it could apply to my current programming.
if and the
ternary do share a lot of the same characteristics on the surface, there are key fundamental differences.
if is a statement and the
ternary is an operator.
This effects where and how these features can be used. The
if is used within a statement block and the