Live data from Hacker News

Functional programming should be the future of software

spectrum.ieee.org

511–513 of 513 posts

Re: Functional programming should be the future of software

#512
post #17

FP is a thing that's come and gone. All the smart kids have moved on to Rust, where you get to play with types like a Haskell programmer but still have imperative constructs and no GC.

Rust is the industry's next incremental step toward functional programming. Eventually, more and more non-functional features will be removed from languages.

Re: Functional programming should be the future of software

#513
The goto statement exists in most modern languages. Even C# has a goto statement, and while I have only used it once or twice in the past 10 years, it still has a purpose -- effectively breaking out of multiple loops if you are within more than one. That is, break will only break out of the inner most loop. It can save a lot of resources sometimes to break out of both. Normally you would not want to put yourself in such a position, but it happens and comes in handy.
Post reply on HN