Re: Multi-assign
- Posted by mattlewis (admin) Nov 18, 2011
- 2275 views
DerekParnell said...
Except that there is a problem with calling it a bug; it's documented as legal. Look at the section in the documentation on "Slicing of Sequences". In there we see ...
s[$][1..floor($/2)] -- first half of the last element of s
Now although it may not be what some intended, it is documented, and what harm or problem does it cause?
Fascinating. As soon as I saw it, I realized how it worked. And now that you've shown that, I recall that being the original spec. OK, so we don't want to break that, and so if we want to use the same symbol for multi-assign and for "use the default arg", then we obviously can't use $, so I relent.
Matt