in reply to my new article, "A Romp Through Infinity"
Since Perl 6 is supposed to be largely about context, I find it surprising that one would put an adverb after an operator. It seems to me as if most adverbs are going to be used such that they can be thought of as setting a context for the expression. It seems some bracketing construct around the expression or a prefix adverb are either one clearer then a postfix adverb.
Placing the adverb after the operator reads more naturally if one is converting the phrase to English as one reads, as in "if fido is greater than scooter by the authority of the AKC" vs. "if, according to the AKC, fido is greater than scooter". I'm just not sure it makes the visual impact in the code that I'd want it to make.
I can understand that putting the optional parameters first is an unusual thing. It's often more difficult to parse, too. The parsing difficulty seems to arise more from the rarity of it than vice versa, though. I'm wondering if putting the optional "adverb" parameters last was fully considered or done from force of habit.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: my new article, "A Romp Through Infinity"
by John M. Dlugosz (Monsignor) on Aug 06, 2008 at 19:04 UTC | |
by mr_mischief (Monsignor) on Aug 06, 2008 at 19:32 UTC | |
by John M. Dlugosz (Monsignor) on Aug 07, 2008 at 10:02 UTC |