Is this expected behavior for throw in ruby?
I noticed this behavior while playing with trap and with catch/throw methods to better understand how they can/should be used. In Ruby the catch and throw methods appear to be intended to be used in pairs: catch(:ctrl_c) do trap("SIGINT") { throw :ctrl_c } (1.. ).each {|n| print "."; sleep 0.5 } end # SIGINT trapped… Read More Is this expected behavior for throw in ruby?