What is the monomorphism restriction?

What is the monomorphism restriction? The monomorphism restriction as stated by the Haskell wiki is: a counter-intuitive rule in Haskell type inference. If you forget to provide a type signature, sometimes this rule will fill the free type variables with specific types using “type defaulting” rules. What this means is that, in some circumstances, if … Read more

Use of var keyword in C#

I still think var can make code more readable in some cases. If I have a Customer class with an Orders property, and I want to assign that to a variable, I will just do this: var orders = cust.Orders; I don’t care if Customer.Orders is IEnumerable<Order>, ObservableCollection<Order> or BindingList<Order> – all I want is … Read more