User talk:Thundergnat: Difference between revisions

→‎using of intermediate variables: Sorting three variables
(→‎using of intermediate variables: clarified which Rosetta Code task this was in reference to.)
(→‎using of intermediate variables: Sorting three variables)
Line 163:
If your assertion is correct, do you have a remedy (or improvement) for better wording in the task's requirements?
<br>-- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 19:59, 30 April 2017 (UTC)
:Quote:|''Sort (the values of) three variables (X, Y, and Z)''| Seems to me that says use three variables. For something like this, in Perl 6 normally I'd just assign three values to an anonymous array and sort that, E.G. <code>say [9 7.7444e4 -12].sort</code>. The task could just say "sort three numeric values by magnitude and three string values in some lexical order" without really delving into how the values are stored or accessed. Once it specifies variables and especially numbers of variables, it is adding constraints that in this case have little to do with the main task.--[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 20:55, 30 April 2017 (UTC)
10,343

edits