Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Inheritance Is Terrible. Parent comment
Personally I'd make an exception when using extension methods in C#. If you make an extension method which looks (schematically) as follows:
add_to_cart(this item, Cart cart) { cart.add(item); return item; }
item.add_to_cart(cart) .check_availability() .do_something_else() .etc()
There are no comments on this comment yet.
Personally I'd make an exception when using extension methods in C#. If you make an extension method which looks (schematically) as follows:
You can write code that looks like: Well, this example isn't the best, but you get the general idea.