I noticed a difference when calling a function with empty parentheses, or without any parentheses at all. However, I am not passing any arguments to the function so I wonder
initAll
is a reference to a function value and the brackets operator appended to the function name RUNS this function object.
So if you do something like
a = initAll
then a
will become the same as initAll
- for example you can do a()
- but with
a = initAll()
the variable a
will get the return value of the executed initAll
function