Hacker News new | past | comments | ask | show | jobs | submit login

Which is what makes PHP so good, as you're not forced to use any particular style of programming. Or C.



And, dutifully, most PHP programmers don't bother using any particular style of recognizable programming. When in Rome...


Neither C nor PHP support functional programming well. They don't even acknowledge logic programming. But hey, you can use any style you want. As long as it's imperative.

I think the most multi-paradigm languages are certain lisps. As long as you only care about different declarative styles (basically the opposite of C), Haskell is surprisingly good: point-free programming is like stack-based programming and you can easily embed non-deterministic code as well. And you can write imperative code about as easily as writing functional code in PHP or C.


And if you need a function in several objects, there is now Traits.




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

Search: