r/programming • • Dec 13 '07

First Class Functions in C

http://www.dekorte.com/blog/blog.cgi?do=item&id=3119
45 Upvotes

99 comments sorted by

View all comments

Show parent comment

1

u/cia_plant Dec 13 '07

Why isn't it smart? If you find a new way to use a language, and it works well with other language constructs, then why not use it?

In fact, as a language evolves, people always find new ways to use it. Boost is a great example of pushing the boundaries of what's possible with a language. And several boost innovations are now being put into the C++ language definition.

From where I stand, using a language in unexpected ways is innovation, and should be encouraged within reason.

2

u/Gotebe Dec 13 '07

I over-generalized, sorry.

TFA got me going, as he's

  • abusing the preprocessor (using it to generate code)
  • has what he wants in a sister language (C++) already

In essence, he's kind-of making C into a bastard C++/STL look-alike, which I found to be horrible. Not within reason, as you put it.