Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Type erasure

Name: Anonymous 2013-12-11 8:20

Why in the name of Sussman would any compiler do this:
a) by default.
b) without a way to turn it off (e.g. please don't optimize my program in this way)

Name: Anonymous 2013-12-11 8:35

Because many languages are written by sadists and used by masochists.
Take Python for example.
It's blatantly obvious that delimiting code via whitespace is a terrible idea, yet the language still does it because it's written by a conceited sadist who sees everybody else as a first year compsci student.

Name: Anonymous 2013-12-11 8:40

>>1
Is any compiler who do that?

Name: Anonymous 2013-12-11 19:54

>>3
javac

Name: Anonymous 2013-12-11 20:19

uncle's cousin*

Name: Anonymous 2013-12-11 20:19

nigger fuck you

Name: Anonymous 2013-12-11 20:44

>>6
* African American

Name: Anonymous 2013-12-11 21:09

>>7
>le pedophile sage

Name: Anonymous 2013-12-11 22:13

>>1
Well, in the case of Java, type erasure was done for compatibility. They didn't want to have to modify the Java bytecode. Hence the generics clusterfuck. "Turning it off" would've required a runtime environment that understood type signatures, breaking the backwards compatibility design goal.

Name: Anonymous 2013-12-12 1:48

>>4
It sucks!

Name: Anonymous 2013-12-12 2:15

<--------------- ^_______________________^

Name: Anonymous 2013-12-12 16:18

>>11
Back to the imageboards, please!

Don't change these.
Name: Email:
Entire Thread Thread List