3 ms·
> No one would write a class when we’re using a functional approach everywhere. They're not orthogonal. Closures and classes are dual forms of the same thing.
by ok123456 1y ago
> No one would write a class when we’re using a functional approach everywhere.
They're not orthogonal. Closures and classes are dual forms of the same thing. There are cases where one is better than the other for a given problem.