|
|
|
|
|
by everheardofc
3209 days ago
|
|
Because nobody bothers with "OOP" or "FP" because there is not a single cannonical implementation of these that everyone agrees on. What you're talking about has nothing to do with neither. Any language that has generics can have self types or whatever you want to call them. It's a matter of whether the language has a strong static typesystem and most FP-style languages have these and a minority of OOP-style languages has them too. The reason why I use C++ has nothing to do with a preference for OOP. It's because all the widely used alternatives have terrible performance. I hate dealing with C++ projects. I hate dealing with memory leaks and segfaults. But that doesn't stop me from creating more of them and working on existing ones. All of that because the resulting memory footprint and performance are worth it. |
|