3 ms·
C# is a statically typed language that gets a lot right (and not coincidentally also borrows a ton from Python). As mainstream languages go it's probably the be
by jbellis 16y ago
C# is a statically typed language that gets a lot right (and not coincidentally also borrows a ton from Python). As mainstream languages go it's probably the best out there; too bad the Mono compiler is usually a version behind and the VM does not have competitive performance with either Windows CLR or Linux JVM.
- MichaelGG 16y agoExcept C#'s still quite verbose. Doubly so if you heavily use generics and functional programming. You just aren't as free in the style of code that works. For one sample point, I rewrote one of FreeSWITCH's C modules in C# and F#. The F# version had 1/20th the number of type annotations.
- fertel 16y agoThe c# version is pretty concise. And since 3.0 with implicitly typed local variables, its gotten less verbose. var result = seq.Where(a=>a %3==0).Select(a=>a*a);
- MichaelGG 16y agoYea, but try moving the predicate to a local function, and you get: Func<int, bool> pred = a => a %3 == 0. Mix in more complex types (say a dictionary with a tuple in it), and it starts getting pretty verbose.