5 ms·
"Go won’t let you abstract yourself in the foot." :)
by dawkins 11y ago
"Go won’t let you abstract yourself in the foot." :)
- myg204 11y agoWhat a good expression. Did the author originate it?
- dawkins 11y agoyes, it's from the article
- jamesfisher 11y agoWhat a strange idea. The whole point of a programming language is to enable abstraction. I suppose assembler doesn't let you "abstract yourself in the foot" (whatever that means) either.
- Veedrac 11y agoI tend to think of abstraction as the price. To see why this is justified, note that you can trivially come up with an abstraction that has no benefit (eg. pointless redirection), but coming up with one that has no cost (eg. developer-, compiler- or run-time) is near-impossible. It's true that many abstractions pay for themselves many times over, but not all do. For some applications, this means that a language encouraging a more direct solution comes out ahead; for others one looks for languages that make the wanted abstractions cheaper.
- Artemis2 11y agoThere is such a thing as too much abstraction. That's partly why Java has now that huge reputation of being a very enterprisey language.
- stass 11y agoThat is actually due to a lack of rich abstraction mechanisms in Java.
- tantalic 11y agoThe whole point of a gun is to enable shooting.