top | item 782509

Y Combinators in C#

26 points| profquail | 16 years ago |blogs.msdn.com | reply

18 comments

order
[+] diN0bot|16 years ago|reply
dang. i was expecting to see which ycombinator startups were using C#...
[+] profquail|16 years ago|reply
I'm honestly a bit surprised that we don't hear more about startups that use C#/.NET for their apps. Especially when you can download the Express editions of Visual Studio for free (which is good enough to at least get your startup to a demo phase, after which you'd actually have to buy it.)

Or maybe it's because more of the tech entrepreneurs are also linux types, and are more familiar with python and Java?

[+] TweedHeads|16 years ago|reply
Javascript can do it all:

  function fac(x){ return x==0?1:x*fac(x-1); }
  a = fac(8);

  or a one-liner:

  a = (function fac(x){ return x==0?1:x*fac(x-1); })(8);
Both ways spit 4320
[+] gamache|16 years ago|reply
The Y combinator allows the definition of anonymous recursive functions. These have names ("fac").

Personally, I have never found much of a reason to use the Y combinator. I typically use the method you used in the second example; I declare a named function within the scope of the anonymous one. I find it to be a readability win.

[+] cema|16 years ago|reply
40320. (They do.)
[+] trezor|16 years ago|reply
While this is definitely good geek porn, I have to say as a C# programmer that there might be some things which C# can do but which you might want to abstain from :)