Dissecting the new() constraint in C#: a perfect example of a leaky abstraction

added by DotNetKicks
2/1/2017 3:37:25 PM

3 Kicks, 371 Views

Most likely you've heard about The Law of Leaky Abstractions coined by Joel Spolsky. Even if you never heard of it, you definitely faced it in your day-to-day job. The "law" is pretty simple: "All non-trivial abstractions, to some degree, are leaky". And this is 100% true.