At the risk of getting negative points here, just because people do not agree with me, I'll still answer your question ...
In my logic, which I explained in detail in the link passed in the previous post, the only correct way to call a function is:
my $result = function ($arg1, $arg2);
^
A function name must be separated by the opening paren by whitespace. The parens are there to group the arguments, not to signal that function is a function.
As perl6 has decided that "It is a function if it looks like a function" now excludes the way I see as the only correct way, perl6 has definitely lost a user: me.
Some perl6 programmers tell me that I can create my own grammar(s), but that is completely besides the point. If I cannot write code the (only) way I think is logical (and beautiful), then I've lost one very very important factor in coding: FUN!
Enjoy, Have FUN! H.Merijn
|