Talk:Search a list: Difference between revisions

m (→‎REXX Version 3: added a comment concerning a partially quoted quote.)
Line 33:
<br>it was not claimed that &nbsp; ''_gold'' &nbsp; wasn't a valid REXX variable name.
<br>The use of a pre-pended zero makes the elements harder to read/peruse. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 21:19, 25 August 2015 (UTC)
 
==Raising an exception?==
 
The task description says "''Raise an exception if the needle is missing.''" - however, many of the solutions don't do this. Instead, they rather print a string like "needle not in haystack" to STDOUT in this case and resume the program. The Python solution, for example, even goes out of its way to ''suppress'' the exception that would naturally be thrown. Also, some languages don't even <i>have</i> exceptions.<br>
I propose changing that sentence of the task description, to: "''Print an appropriate message if the needle is missing.''" Any objections?<br>
--[[User:Smls|Smls]] ([[User talk:Smls|talk]]) 11:14, 5 August 2016 (UTC)
Anonymous user