A quick look at the article Using generics for calculations make me think that generics in C# (or Java) will not ever be used for anything else but container classes.
The article states that Visual Basic.NET is Microsoft's default.NET programming language. I've always thought it was C#, because VB.NET lacks some of the features in C#.
... is that C++ templates suck compared to C# generics.
BUT he is lying, it is actually the other way around.;)
"C# does strong type checking when you compile the generic type.... <snip>... So in C# generics, we guarantee that any operation you do on a type parameter will succeed."
I don't understand what Mr. Hejlsberg is saying here. Does he imply that C# code is checked before you compile it, and the programmer is prevented from typing the wrong thing, using their super-secret-mind-reader-thingy, or what? No, what he is saying that if the code compiles, C# guarantees that the syntax is correct. Well, that's a new one, I wonder when Microsoft will patent that idea?
Blast, I didn't think there would be any prior art to prevent this patent, but there is: Any/most computer languages that compiles code does also do this!
C++ does not guarantee anything - until you compile the code! (And even if you compile it any function could throw an exception.)
"For an unconstrained type parameter, like List<T>, the only methods available on values of type T are those that are found on type Object, because those are the only methods we can generally guarantee will exist."
One will not create boost::spirit, blitz++ or anything else but some containter classes with that.
"In C# generics, we have the ability to put constraints on type parameters. Take for example our List<T>. You could then say, class List<T> where T: IComparable. And that means T must implement IComparable."
What he is saying is that C# generics is really inheritance/implementation of one or more interfaces.
With C++ templates the 'constraints' are implicitly created for each operation you use on the template parameter, you don't need to state anything, it just works.
Don't laugh too hard, I'm sure it's already happened: Hey, look! This Xerox has a GUI, just like Mac!
Exactly, let us start storing the year using two digits.
And still 99.9% of all visitors to Slashdot are male virgins...
If it doesn't the tool is useless, if it does the tool could be used as the perfect spam filter for email instead.
And IE does not? Indirectly, through the OS that is. Ever tried IE5 on a Mac?
Does that work well with adblock?
But pr0 is for pr0n!
more advanced IE
:)
Well, that's all the extra spyware and virueses you get.
But Wine Is Not an Emulator... :)
struct Slashdot
{
static int i;
Slashdot()
{
std::cout << ++i << std::endl;
}
~Slashdot()
{
std::cout << i-- << std::endl;
}
};
int Slashdot::i = 0;
int main()
{
Slashdot a[100];
}
the only zombies are the old people...
Well, if I'd had a quantum computer, I'd show you the entire list of primes.
A quick look at the article Using generics for calculations make me think that generics in C# (or Java) will not ever be used for anything else but container classes.
Java programmers write 10 lines of REALLY LOUSY C code and decide that proves their point about Java being fast.
Not as bad as Honda Fitta...
Well actually, the delay is because the dev-team over at MS is playing their downloaded version of DOOM3 instead of developing SP2...
http://www.bitoogle.com/ - the torrent file search engine.
The article states that Visual Basic .NET is Microsoft's default .NET programming language. I've always thought it was C#, because VB.NET lacks some of the features in C#.
BUT he is lying, it is actually the other way around. ;)
I don't understand what Mr. Hejlsberg is saying here. Does he imply that C# code is checked before you compile it, and the programmer is prevented from typing the wrong thing, using their super-secret-mind-reader-thingy, or what? No, what he is saying that if the code compiles, C# guarantees that the syntax is correct. Well, that's a new one, I wonder when Microsoft will patent that idea?Blast, I didn't think there would be any prior art to prevent this patent, but there is: Any/most computer languages that compiles code does also do this!
C++ does not guarantee anything - until you compile the code! (And even if you compile it any function could throw an exception.)
One will not create boost::spirit, blitz++ or anything else but some containter classes with that. What he is saying is that C# generics is really inheritance/implementation of one or more interfaces.With C++ templates the 'constraints' are implicitly created for each operation you use on the template parameter, you don't need to state anything, it just works.
It's like Space:1999 all over again. See moon. See moon fly away...
EB Games say "07/14/2004"
Gamestop say "05/03/2004"
... this year compared to last year?
or have they sold 15 computers instead of 11?
Born to troll
IE + Googlebar with enabled popupblocker performs perfect with the kephyr.com test.
I call The One for my player name.