Euphoria
Ticket #308:
The $ pronoun
-
Reported by
SDPringle
Nov 02, 2010
Make $ usable outside of [] to indicate the length of the last sequence passed or used. How far shall we go with this?
sequence foo
foo = gets(0)
puts(1,foo)
? $ -- print the length of foo
foo = remove(foo,$-3,$) -- remove the last four elements
Details
1. Comment by jeremy
Nov 02, 2010
What is this ticket for? What bug or feature are you asking for? Are you really asking for
puts(1,foo)
? $
?
2. Comment by jimcbrown
Nov 02, 2010
I oppose. Too much risk of confusing, epecially dealing with subsequences.
At least, write a preproc to prototype the expected behavior beforehand and let us try it out.
3. Comment by jeremy
Nov 04, 2010
The ticket system is not to create a discussion. If you wish to discuss how something will effect the overall design of Euphoria, do so on the dev list.