On Fri, Apr 29, 2016 at 03:50:21PM -0400, Brandon Allbery wrote:
: On Fri, Apr 29, 2016 at 3:47 PM, Brandon Allbery <allber...@gmail.com>
: wrote:
: > Oh, they are resumable exceptions? Useful but rather high cost I'd think.
: > (Granting that perl6 isn't one of those languages that think exceptions
: > should be normal control flow. But anyone who decides it should be is
: > probably in for a very slow slog.)

Warnings are implemented like return or next; control exceptions are
more efficient than error exceptions.  (This is one of the reasons you
have to catch them with a CONTROL block rather than a CATCH block.)

: ...also I now know that I should not use warn in many cases where I would
: have otherwise.

If you need to produce actual warnings in hot code, something's wrong
with your design.  (If you just want to print to STDERR, you can use
'note' instead.)

Larry

Reply via email to