Re:Which Programming Languages Are Functional?
by seanwilson on Wednesday December 30, 2015 @10:30AM
(#10812407)
Controlling state the way functional languages do makes code significantly easier to test. Besides this, functional languages have many great features such as strong typing, pattern matching and inductive types that have yet to be adopted by any mainstream languages.
[ Parent
| on HN ]
Re:Which Programming Languages Are Functional?
by chvid on Wednesday December 30, 2015 @11:00AM
(#10812547)
Don't get me wrong; I think "no side effects" is a very useful way of programming for a large number of problems. But not all problems. In particular problems related to user interface and system integration.
And languages I listed (JavaScript, C#, Swift and Java) have all stolen large chunks of ideas pioneered by functional programming and put it into their latest release.
Re:Which Programming Languages Are Functional?
by tombert on Wednesday December 30, 2015 @11:46AM
(#10812861)
If you take a language like Haskell, you can utilize an FRP framework like Netwire to write pure-ish code whilst having reactive things. I'm currently writing an ncurses application that does exactly that.