On Friday, 7 February 2014 at 01:31:17 UTC, Ola Fosheim Grøstad
wrote:
On Friday, 7 February 2014 at 01:23:44 UTC, Walter Bright wrote:
Right. If you're:
1. using throws as control flow logic
[...]
you're doing it wrong.
I disagree.
REST based web services tend to use throws all the time. It is
a an effective and clean way to break all transactions that are
in progress throughout the call chain when you cannot carry
through a request, or if the request returns nothing.
I think in the case of people using exceptions for control flow a
GC.free in your exception handler would suffice for preventing
the GC heap from growing to
the point where collection times become a concern.