2 ms·
The other thing that's "funny" to me with PHP is that they are adding features a few years after everyone. Right now they're really big on OO when lots of peopl
by Zababa 5y ago
The other thing that's "funny" to me with PHP is that they are adding features a few years after everyone. Right now they're really big on OO when lots of people are slowly moving towards more FP features.
- tored 5y agoIs the trend of FP still going on? I'm not so sure, feels like it has somewhat slowed down compared to the hype about eight years ago. There is somewhat a positive trend about immutability, but you don't need a FP language of FP features for that. My guess which languages that is most popular here at HN, based on rough estimate of number of positive mentions, would be C, golang, rust & python, where neither is a FP language. Edit: Maybe Erlang should be included in that list of popular HN languages, if that is the case then it is one out of five.
- Zababa 5y agoI think it is. Python added pattern matching, Java got records and pattern matching, C# too. React transitionned from class to hooks and is getting (or already got? I don't follow React too much) an effect system. Rust has a heavy FP influence. Go will have generics which may or may not open the door to some FP. From my understanding, the C landscape has a huge NIH and fragmentation bias, which means that ideas take a lot more time to penetrate. Replacing everything with FP languages is not going to happen, but I think more and more people are coding in a "FP way" if that makes sense.