Re:Show HN: DeepUI Programming Studio – A different approach...
by TuringTest on Monday February 13, 2017 @03:54PM
(#13638667)
Functional code can represent an imperative program (using temporal logic or state monads), so it can be used for domains where you would use imperative code.
It will not always be easier, but it certainly provides more control over the execution flow.
Re:Show HN: DeepUI Programming Studio – A different approach...
by brianberns on Monday February 13, 2017 @09:36AM
(#13635468)
Implementing an algorithm in a functional language almost always requires less code than implementing the same algorithm in an imperative language. That is direct evidence that functional languages are more abstract.
If you only ever work on things that map well to functional programming then you'll naturally think it's superior to imperative programming. Likewise, if you only ever work on things that map well to imperative programming, then the functional programming approach seems a bit silly.