C
C
ChickenGrinder2015-10-07 12:59:17
JavaScript
ChickenGrinder, 2015-10-07 12:59:17

What is the difference: first class functions and higher order functions?

In programming languages ​​there are such concepts as: first-class functions - first class functions , higher order functions - higher order functions .
After reading the definitions, it is not clear what is the difference, or are they synonyms?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2015-10-07
@ChickenGrinder

Higher-order functions are functions that can take other functions and return functions. first-class functions is a language feature that allows variables to contain function references. In fact, they are different things, but separately there is not much sense in them :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question