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

Generics are dangerous

Name: Anonymous 2018-09-02 12:38

Generics are bad and complex and we should not have them.They make my head hurt. I don’t like complex. I like copying and pasting code and adjusting types. I like macro’s. Just like in 1981. You like generics? You support BUGS in CODE.

Name: Anonymous 2018-09-03 8:58

>>14
Then you will not be able to do recursion nor pass it as a function argument.

>>15
If you were in lisp (see >>2) this would make sense, except that you are not in lisp, you are in C, where you have to do painful shit like:
MAKEID(char)

...
id_char(1)


enum argument e..g. (DOUBLE,FLOAT,INT,INT64)
Won't work with structs, unions, and function pointers.

for specific struct/class/etc
The specific bit is what causes the issue.
Do you want to end up like glib?

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