# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #69520]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=69520 >


<masak> this one's interesting:
<masak> rakudo: try { warn "OH HAI"; say "1" }; say "2"
<p6eval> rakudo ffe648: OUTPUT«2␤»
<moritz_> "interesting"
<masak> There seems to be two competing views in the synopses about
what C<warn> actually does. S03 lists it under "Exception generators",
while S32/Basics.pod says that it "Prints a warning to C<$*ERR>".
<Matt-W> hmmmmm
<masak> personally, I certainly didn't expect 'warn' to throw an
actual exception.
<Matt-W> should warnings be exceptions? you don't usually expect them
to break control flow
<masak> I just wanted $*ERR.say, more or less.
<Matt-W> it seems like a very odd thing to do
<Matt-W> they're supposed to be non-fatal
<masak> I was mighty surprised when one of my try blocks caught a warning.
<Matt-W> that's why you say warn, not die
* masak submits rakudobug, even though this is more or a spec issue
<jnthn> IIRC the current impl is that they are (resumable) exceptions

Reply via email to