On Tue, 27 Dec 2016 13:28:19 -0800, comdog wrote: > Using chdir with a non-existent directory appear to throw the > exception > immediately rather than using fail.
A bit of a discussion for why chdir throws: https://irclog.perlgeek.de/perl6-dev/2016-12-28#i_13810888 But on further inspection, I see most of IO routines intercept Failures and throw them; search for ".throw" in https://github.com/rakudo/rakudo/blob/nom/src/core/IO/Path.pm and and https://github.com/rakudo/rakudo/blob/nom/src/core/io_operators.pm Yet the docs say they fail() and not throw. So it makes me wonder if it's a design decision to abandoning the Failure mechanism on all of IO routines?