News for hackers. Stuff that matters.
Re:Lisp is not functional (2010) by ordu on Wednesday February 08, 2017 @03:19PM (#13601646)
So... Is C a functional language? It allows us to pass functions to functions, return them back, storing them in variables and structures, and so on. Looks like C is a functional language.
Re:Lisp is not functional (2010) by lisper on Wednesday February 08, 2017 @03:28PM (#13601722)
Not quite. To be a first-class data object you not only need to be able to pass and return them, but you also need to be able to create new ones at run time (i.e. you need to be able to make closures). C can't quite do that. (You can roll your own closures, but it's awkward.) But yes, C is closer to being functional than most people realize.