Subscribe: Fabulous Adventures In Coding
Preview: Fabulous Adventures In Coding

Fabulous Adventures In Coding

Eric Lippert's Erstwhile Blog

Last Build Date: Thu, 06 Aug 2015 07:02:35 +0000


A new fabulous adventure

Thu, 29 Nov 2012 07:00:00 +0000

Tomorrow, the 30th of November, 2012, is the first day of my fifth decade here on Earth, and my last day at Microsoft. (*) I've been working at Microsoft full-time since 1996 and had two years of internships before that. Microsoft is an awesome company. We do great work here: work that changes the way...

Why is deriving a public class from an internal class illegal?

Tue, 13 Nov 2012 09:32:26 +0000

In C# it is illegal to declare a class D whose base class B is in any way less accessible than D. I'm occasionally asked why that is. There are a number of reasons; today I'll start with a very specific scenario and then talk about a general philosophy. Suppose you and your coworker Alice...

It’s still essential!

Fri, 09 Nov 2012 12:00:00 +0000

I am pleased to announce that Essential C# 5.0 by Mark Michaelis, and, new for this edition, yours truly, is available for pre-order now. It will be in stores in early December. As long-time readers of this blog know, I was one of the technical editors for Essential C# 4.0 and Essential C# 3.0. Mark...

Dynamic contagion, part two

Thu, 08 Nov 2012 06:43:00 +0000

Last time I discussed how "dynamic" tends to spread through a program like a virus: if an expression of dynamic type "touches" another expression then that other expression often also becomes of dynamic type. Today I want to describe one of the least well understood aspects of method type inference, which also uses a contagion...

Dynamic contagion, part one

Mon, 05 Nov 2012 06:47:00 +0000

Suppose you're an epidemiologist modeling the potential spread of a highly infectious disease. The straightforward way to model such a series of unfortunate events is to assume that the population can be divided into three sets: the definitely infected, the definitely healthy, and the possibly infected. If a member of the healthy population encounters a...

A method group of one

Mon, 22 Oct 2012 06:24:00 +0000

I'm implementing the semantic analysis of dynamic expressions in Roslyn this week, so I'm fielding a lot of questions within the team on the design of the dynamic feature of C# 4. A question I get fairly frequently in this space is as follows: public class Alpha{  public int Foo(string x) { ... }}...dynamic d...

Is C# a strongly typed or a weakly typed language?

Mon, 15 Oct 2012 09:26:00 +0000

Presented as a dialogue, as is my wont! Is C# a strongly typed or a weakly typed language? Yes. That is unhelpful. I don't doubt it. Interestingly, if you rephrased the question as an "and" question, the answer would be the same. What? You mean, is C# a strongly typed and a weakly typed language?...

High Altitude

Fri, 12 Oct 2012 07:38:00 +0000

No computer programming stuff today; just some fun for Friday. As I'm writing this Felix Baumgartner's attempt to set the world record for skydiving height by diving from a helium balloon has been scrubbed due to bad weather. This attempt has got me thinking of my good friend JB, who back in 1982 set the...

Does Not Compute

Wed, 10 Oct 2012 06:27:00 +0000

One of the most basic ways to think about a computer program is that it is a device which takes in integers as inputs and spits out integers as outputs. The C# compiler, for example, takes in source code strings, and those source code strings are essentially nothing more than enormous binary numbers. The output...

How do we ensure that method type inference terminates?

Tue, 02 Oct 2012 09:48:31 +0000

I missed the party. I was all set to be on that massive wave of announcements about TypeScript, and then a family emergency kept me away from computers from Thursday of last week until just now, and I did not get my article in the queue. Suffice to say that I am SUPER EXCITED about...