C# 2.0 Spec Released 634
An anonymous reader writes "Microsoft released the design specifications document for C# 2.0 (codenamed 'Whidbey') to be released early next year. New features of the language include generics similar to those found in Eiffel and Ada, anonymous methods similar to lambda functions in Lisp, iterators, and partial types."
Re:moving towards bloatware or are these important (Score:2, Interesting)
Bill
Why C# doesn't Totally Suck (Score:5, Interesting)
I guess even within these circumstances, I'd have refused to open Visual Studio for this project, if it didn't say ".NET" as well. I mean, think of it: previous versions of VS only supported C++ or VB, with APIs to cry for (admittedly, I don't know about MFC, only about Win32).
I actually happen to dislike C++, but on top of that, it doesn't suit my project, because the low-levelness makes it harder to program without errors (e.g. null pointers, memory leaking). I'd rather have a language at a scripting level -- and NO, that's NOT VB. I hope I don't have to explain why I hate VB if only on very first sight.
So with
There's really no need for anybody to pick on C#, long as it's realized that it's just finally a nice programming environment for Windows, and nothing (well, not much) more. (BTW, it's not much different from NeXT (now Apple)'s use/ takeover of Objective C.)
Re:Sea Number/Sea Sharp (Score:4, Interesting)
The octothorpe symbol, '#', has slanted vertical strokes. The "sharp" sign has slanted horizontal strokes.
C# generics on built-in types do not use boxing... (Score:5, Interesting)
"When an instance of Stack<int> is created, the native storage of the items array is an int[] rather than object[], providing substantial storage efficiency compared to the non-generic Stack. Likewise, the Push and Pop methods of a Stack<int> operate on int values, making it a compile-time error to push values of other types onto the stack, and eliminating the need to explicitly cast values back to their original type when they're retrieved."
Java uses Object boxing for built-in types in their generics implementation.
Re:Why C# doesn't Totally Suck (Score:3, Interesting)
For some people, perhaps. I find the MS development tools so nauseatingly bad that they are one of the main reasons that I don't do anything with Windows.
Fortunately, on Linux you get a choice: excellent command line tools and IDEs. On Windows, unfortunately, you don't: Windows command line tools simply are completely useless.
don't you read telephone manuals!? (Score:3, Interesting)
Honestly why should one bother? It's neither portable nor natively executable. It's neither scalable to embedded systems nor to high-end servers. It has neither legacy code nor a bright future.
Mono is a good start, but M$ will fight it when it starts to show results.
I like Java, I like C, and I like C++. Each of them rock and suck in different ways.
Re:booooring (Score:4, Interesting)
Java generics are broken because they don't guarantee type safety across compilation units. That requires VM changes, changes that Microsoft was willing to make but Sun wasn't.
Java is more and more turning into an accumulation of evil kludges. Instead of type-safe generics, we got a hack. Instead of lexical closures, we got nested classes. Instead of structs, we got some half-hearted promise of optimization under some nebulous set of circumstances that can't work in general. Instead of multidimensional arrays, we got some classes with a horrendous syntax that, on some theoretical JIT, might actually run faster than a snail.
I don't know whether C# will grow up into a well-designed general purpose programming language, but it is crystal clear that Java has missed the boat.
Re:Why should I care? (Score:3, Interesting)
You would consider it a feature that there aren't third-party tools to improve development and deployment?
I have no idea what Sophia is, but I used java for a long time before hearing of struts and ant (you know, you can use Make with java). Struts takes the generic specs and makes things a lot better. They're both optional. Like many other misguided souls, I've written apps completely in jsp as well.
Third-party options that fit into standards, make things better, but are not required are an advantage, not a disadvantage.
c# and Stdin/Stdout anyone? (Score:4, Interesting)
StandardInput and StandardOutput, in
Piping binary data from one app to another is a very non-trivial task.
These are the small "features" that make c# unsuitable for anyone "thinking UNIX". Of course piping through stdout/stdin is not needed: you can use remoting, sockets or whatever - but those make easy things hard.
Anyone who has written a c# program that uses stdin/stdout for binary data?
BTW, you definately does not need Visual Studio to program
'unsuitable for anyone "thinking UNIX"' (Score:4, Interesting)