# New Ticket Created by Zefram # Please include the string: [perl #126163] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=126163 >
Even if [perl #126146] and [perl #126147] are not bugs, that .map et al go wrong *silently* is less than awesome. It would be better if an error were signalled whenever they're used outside their intended scope. Maybe this could be factored out to the iteration system, requiring checks in only a small number of places. Whenever an iteration construct gets an out-of-scope input, or generates an out-of-scope output, it should detect that and signal an error. When the spec documentation addresses the issue of what values can be passed through the iteration system [perl #126159], the checks should of course match the documentation. The check might be .isa(Any), for example. At minimum, the check needs to reject anything that downstream iteration code would misinterpret, so !=:=IterationEnd. -zefram