News for hackers. Stuff that matters.
Re:HTML5-based Windows 8 enrages .Net devs, alienates Linux ... by wslh on Monday June 06, 2011 @12:36PM (#2625314)
Sorry, I don't see the similarity. Can you elaborate? Thanks.
Re:HTML5-based Windows 8 enrages .Net devs, alienates Linux ... by adolfojp on Monday June 06, 2011 @01:01PM (#2625413)
They both have brackets and colons. How much more similar can you get!

Joke aside, the first time that I coded in JavaScript I treated it as if it were a dynamically typed Java. Pain and suffering and confusion ensued.

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.

Re:HTML5-based Windows 8 enrages .Net devs, alienates Linux ... by hare on Monday June 06, 2011 @01:54PM (#2625630)
I think the similarity started more around C# 3 when C#'s syntax was changed to make functional programming less painful.