3 ms·
Classes require tons of work under the hood to work. In exchange, they add a confusing new concept of fields alongside protypes while also hiding the actual pro
by hajile 7y ago
Classes require tons of work under the hood to work. In exchange, they add a confusing new concept of fields alongside protypes while also hiding the actual prototype inheritance to ensure future confusion.
The pipe operator is a super-basic transformation of the AST. In exchange, you get much easier to read "nested" functions. `foo(bar(baz(x))) --> x |> baz |> bar |> foo` is very easy to teach and very easy to understand.
It's hardly a fair comparison.