4 ms·
Also seems like a misunderstanding of C# features: > type safety is loosened and a few keywords are borrowed from JavaScript (var) C# is strictly and statical
by sratner 18y ago
Also seems like a misunderstanding of C# features:
> type safety is loosened and a few keywords are borrowed from JavaScript (var)
C# is strictly and statically typed. The var keyword is only similar to Javascript's in using the same three letters. What the author calls loose typing is derived by the compiler, at compile time, in a completely static fashion. However, you get the power of being able to type variables even when you cannot name the type (for example, anonymous types).
> with LINQ, they decide to borrow the single most verbose language on the planet (SQL), and add that too
LINQ is about SQL about as much as Javascript is about Java.
edit: Oh yeah, and Java never really added generics. It's just some syntax sugar which in no way actually closes a hole in the type system.