Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some solutions are much easier to express in an imperative way.

You can still write pure functions and avoid state in imperative code. Use consts, immutable objects, etc. You get some of the benefits of functional programming while still writing readable code.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: