News for hackers. Stuff that matters.
Re:HTML5-based Windows 8 enrages .Net devs, alienates Linux ... by nxn on Monday June 06, 2011 @06:20PM (#2626988)
C#: var obj = new { propA = 1 , propB = "meh" };

JavaScript: var obj = { propA: 1 , propB: "meh" };

I admit that's about as close as they get syntactically, but with type inference, higher order functions, and anonymous types they really kind of "feel" similar in some cases. Oh, and C# has optional dynamic typing, so it can ~really~ feel similar if you want.

There are no comments on this comment yet.