r/badcode • evil • Jan 14 '21

js Dynamically created functions are the future!

Post image
795 Upvotes

102 comments sorted by

View all comments

3

u/jarfil Jan 14 '21 edited Dec 02 '23

CENSORED

2

u/[deleted] Jan 15 '21

Isn't this just template

Exactly. C++ devs around the world do that exact thing with templates since decades. With templates it looks a little bit nicer, but it actually is not 😅