But, the notation "f ()" should not be used to refer to the function 'f'. Why? Because "f()" refers to the value returned by the function 'f' .
But doesn't this make it too easy to confuse 'f', which is a function, with variables named 'f', which may hold any type of object as well? Yes, it makes it more difficult.
I think the benefit of being able to distinguish between referring to a function f, and its value f(), is more important than the ability to indicate with a special form or syntax whether we are referring to a function or a variable holding some other type of value.
© 2014 Panu Viljamaa. This work is licensed under a Creative Commons Attribution 4.0 International License