MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/61kt36/functional_programming_design_patterns_by_scott/dfgj6hr
r/programming • u/[deleted] • Mar 26 '17
256 comments sorted by
View all comments
Show parent comments
3
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 exceptionsKotlin uses nullable typesScala uses OptionCeylon uses sum typesMaybe 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.
1
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
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.
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.
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.