Oh, my. Didn't expect them to actually do it. I wonder what the "let's break Community Server" threads are going to look like.
Spectre
@Spectre
Best posts made by Spectre
-
RE: Imports (Was: {brace yourselves} the import is coming {Spoiler Alert: Not all of it} [i.e. blakeyrat was not utterly wrong for the first time ever] Filed under: append-only titles.)
-
RE: The Daily WTF Wants Writers...Again!
TRWTF is 300-500 what? words? letter? paragraphs? pages?
It said "length", so it's clearly metres.
-
RE: Poll: how do you pronounce the prefix Giga?
Because the G stands for giraffics, right?
-
RE: Java is a statically typed language which couldn't care less for type safety
Why is Class generic, for instance?
So that its methods can have more specific types, duh. Like newInstance, for example.
-
RE: Java is a statically typed language which couldn't care less for type safety
Correct me if I'm wrong, but doesn't type erasure mean that compiler has no way to statically check type safety of generic containers when interacting with precompiled 3rd-party library?
Depends what you mean. The original generic signatures of classes and methods are retained, so you can still check type safety of your own code that interacts with the library. You can't determine whether the library itself was compiled with unchecked warnings or not, though.
Latest posts made by Spectre
-
RE: Imports (Was: {brace yourselves} the import is coming {Spoiler Alert: Not all of it} [i.e. blakeyrat was not utterly wrong for the first time ever] Filed under: append-only titles.)
Oh, my. Didn't expect them to actually do it. I wonder what the "let's break Community Server" threads are going to look like.
-
RE: Imports (Was: {brace yourselves} the import is coming {Spoiler Alert: Not all of it} [i.e. blakeyrat was not utterly wrong for the first time ever] Filed under: append-only titles.)
For people who only visit the forum occasionally, can someone explain what is being imported where?
-
RE: Poll: how do you pronounce the prefix Giga?
Because the G stands for giraffics, right?
-
RE: Java is a statically typed language which couldn't care less for type safety
Correct me if I'm wrong, but doesn't type erasure mean that compiler has no way to statically check type safety of generic containers when interacting with precompiled 3rd-party library?
Depends what you mean. The original generic signatures of classes and methods are retained, so you can still check type safety of your own code that interacts with the library. You can't determine whether the library itself was compiled with unchecked warnings or not, though.
-
RE: Java is a statically typed language which couldn't care less for type safety
Why is Class generic, for instance?
So that its methods can have more specific types, duh. Like newInstance, for example.
-
RE: Poll: how often do programs have collections sorted/hashed by pointer/reference value?
The same thing can happen if you have a TreeSet<Foo> in Java or C# if you don't define hash()/equals() for Foo for almost the same reason.
TreeSet
uses comparisons, not hashing, and there's no default comparison in those languages. Did you meanHashSet
? -
RE: Java is a statically typed language which couldn't care less for type safety
Even further, we have Java - which with its type erasure and stuff, basically nullifies any gains of static typing
Overstating much? Sure, Java's type system is not the most sophisticated one, but it still provides a heckuva lot more safety guarantees than a dynamic language. If you have no unchecked warnings, you're guaranteed that each reference-typed variable references an object of its type (or
null
, but that's another story). And even if you have to do a manual cast, at least the runtime will detect if the cast object is of the wrong type, so the error is likely to be detected promptly. -
RE: The Daily WTF Wants Writers...Again!
TRWTF is 300-500 what? words? letter? paragraphs? pages?
It said "length", so it's clearly metres.