November 2008 Archives

C#: lamer by the moment

To my dis­be­lief, you can’t in­herit from generic type pa­ra­me­ters in C#. Some­thing like this is cur­rently im­pos­si­ble:

class Foo<T> : T
{
}

It’s sad, re­ally, how Mi­crosoft con­tin­ues to focus on other crap but leaves out basic things like con­straint-based over­load res­o­lu­tion or sim­ple in­her­i­tance. And still no Spec# fea­tures.

Låt den rätte komma in

Last night I saw Låt den rätte komma in( Let the Right One In), a Swedish movie about a 12 year old boy who meets a girl vam­pire who’s been 12 years old for some time. The movie def­i­nitely has its badass vam­pire mo­ments, but its pri­mary focus is the lone­li­ness of being a con­stant bully vic­tim and the lone­li­ness of being a vam­pire, and the re­la­tion­ship that forms be­tween the two be­cause of it. It was a very nice movie, if it’s in your area (amaz­ingly, I could only find it in one the­ater in LA) I rec­om­mend you go see it!

One in­ter­est­ing thing I no­ticed was that nearly half of the Swedish they used ap­pear to be loan words – just Eng­lish but slightly mod­i­fied. The per­son I went with did not no­tice this, per­haps I did be­cause I’m used to pick­ing up loan words in Japan­ese. The ef­fect of this was a lot of the time I could com­pre­hend what they where say­ing with­out re­ly­ing heav­ily on sub­ti­tles.