R
rcallan
I've always wondered why there is no language (to my knowledge) where a
function could be declared and used like this:
declaration:
int[] find(int numOfRoots)RootsOf(String eqn){...}
invocation:
int[] solns= find(2)RootsOf("x^2");
If no spaces are allowed, this syntax seems unambiguous, and I can't
think of a reason why it would cause problems (besides it being
unwanted or not useful)
Is there a reason why this isn't allowed? Would it even be useful?
Thanks,
Rob Callan
function could be declared and used like this:
declaration:
int[] find(int numOfRoots)RootsOf(String eqn){...}
invocation:
int[] solns= find(2)RootsOf("x^2");
If no spaces are allowed, this syntax seems unambiguous, and I can't
think of a reason why it would cause problems (besides it being
unwanted or not useful)
Is there a reason why this isn't allowed? Would it even be useful?
Thanks,
Rob Callan