Question: remember a time when C# didn't have generics? or Java?

Asked By
Asked At
2017-10-05 19:10:53

Found 15 possible answers.

User Answered At Possible Answer
dlsniper 2017-10-05 19:10:56 not quite, depending on the language they are done at compile time via extensive code generation
docmerlin 2017-10-05 19:11:05 thats what I mean dl
lpar 2017-10-05 19:11:14 I remember when Java didn't have generics. Lots of APIs still don't.
docmerlin 2017-10-05 19:11:16 they are usually done via code generation at compile time
lpar 2017-10-05 19:11:20 e.g. JNDI
dlsniper 2017-10-05 19:11:21 yup
caseylmanus 2017-10-05 19:11:24 C# programs where littered with ArrayList
dlsniper 2017-10-05 19:11:30 but nginx is already compiled, that's what I meant
docmerlin 2017-10-05 19:11:34 ah
lpar 2017-10-05 19:11:44 And Java still throws away the type information during compilation.
docmerlin 2017-10-05 19:11:48 you could do that with go, would be cool
dlsniper 2017-10-05 19:11:54 as in, the nginx binary compiles the config into highly optimized code
docmerlin 2017-10-05 19:11:58 compile your DSL into go
dlsniper 2017-10-05 19:12:08 that's why it's so performant
lpar 2017-10-05 19:12:27 nginx's requiring a C compiler to change the config is a PITA, to be honest. Speaking as a sysadmin.

Related Questions