I know that obj.func1().func2()
is called method chaining, but what is the technical term for:
func1(func2(), func3());
Where return of a function is used as an argument to another.
terminology
I know that obj.func1().func2()
is called method chaining, but what is the technical term for:
func1(func2(), func3());
Where return of a function is used as an argument to another.
Best Answer
I don't think it's function composition. Function composition means taking two or more functions and turning them into a new function, like
f . g . h
in Haskell. Note that no function is called at this point.Personally, I would refer to constructs like
func1(func2(), func3())
as "nested function calls".