What do you get when you put Spolsky, Atwood, Blyth, and Hanselman in the same room? A crazy Content-Free podcast recorded backstage at the San Francisco DevDays conference.
The video is up at Channel 9, and the audio will be up on Hanselminutes and in the RSS Podcast Feed in the morning. The audio for the actual podcast will include tracks from three locations and will likely be a LOT better, however, be warned, this episode runs a bit longer than usual and the sound quality isn't up to our usual standards.
Warning: extreme ramblosity ahead!
Enjoy! You've been warned.
id x = x
public T id(T t);
incr x = x + 1
Num a => a -> a
// C#void id<T>(T x){ return x}void foo(){ id<int>(5); id<float>(5.f);}-- Haskellid x = xid 5id 5.0
public MyPerson : IPerson{ public var Name { get;set; }}public class Program{ public static void Main(string[] args) { // On Error Resume Next MyPerson p = new MyPerson(); p.Name = new NameClass("Bob"); p.Name = "bob"; // A value type or ref? How far can we push the CLS before it ends up being a typeless (dirty!) system? }}
var x = 5;var x = "foo";
// Current C#T Foo<T>(T x){ return x;}// Mythical C# with type inference for parameters (still statically typed!!!)var Foo(var x){ return x;}
Your example doesn't work for the same reasons that his doesn't work in C#:var x = 5;var x = "foo";
var x = 5;x = "foo";
var ElapsedTime(var x) { return DateTime.Now - x; } var ElapsedTime(var x) { return TimeSpan.Parse(x); } ... var time1 = ElapsedTime(someDateTime); var time2 = ElapsedTime(someTimeSpanString); ...
Remember Me
a@href@title, b, blockquote@cite, em, i, pre, strike, strong, sub, super, u
Ads by The Lounge