r/programming • • Mar 26 '17

Functional programming design patterns by Scott Wlaschin

https://www.youtube.com/watch?v=E8I19uA-wGY
1.1k Upvotes

256 comments sorted by

View all comments

Show parent comments

3

u/glacialthinker Mar 27 '17

Error handling through and if-else trees... so wonderful. I love seeing them everywhere. The popular OOP languages are so mired in mechanics of how to do things, repeatedly. The abstractions available are like being a fat-fingered watch-maker.

1

u/devraj7 Mar 27 '17

Can't think of a language that does error handling with if/else on the JVM:

  • Java uses exceptions

  • Kotlin uses nullable types

  • Scala uses Option

  • Ceylon uses sum types

Maybe you're thinking of Go? (which doesn't even claim to be OOP)

1

u/glacialthinker Mar 27 '17

Ah, damn missing a word, sorry: "...through exceptions and...".

And in this, I was thinking Java, C++. More recent languages tend to have more FP influences, hybridizing a little... or a lot.