Issue #11584 has been reported by Ronald Fischer.

----------------------------------------
Misc #11584: Kernel::loop silently catching StopIteration, should be documented 
https://bugs.ruby-lang.org/issues/11584

* Author: Ronald Fischer
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
The method Kernel::loop implicitly catches a StopIteration exception. This fact is documented on the documentation page for StopIteration, but it should also (and more importantly) be documented with the Kernel::loop method, because if one doesn't know this detail, the behaviour can be pretty surprising - see for example http://stackoverflow.com/questions/33040260/combining-raise-and-throw/. 



-- 
https://bugs.ruby-lang.org/