#Haskell has zero cost abstractions.
But the cost here refers to programming effort, not performance (well sometimes performance as well).
#Rust #RustLang #ZeroCostAbstractions
@haskman Zero cost abstractions are old pie. Ask for negative-cost abstractions!
@dpwiz actually not far from the truth. The various typeclasses are basically patterns that tell you how to abstract something, often already having the exact code you desire. So abstracting often turns out to be cheaper than not abstracting!
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.
@dpwiz actually not far from the truth. The various typeclasses are basically patterns that tell you how to abstract something, often already having the exact code you desire. So abstracting often turns out to be cheaper than not abstracting!