diary

I like Hatena Star with a text selection.

Entries from 2020-05-09 to 1 day

2020-05-08

TIL: Exception#causeはraiseされるまではnil つまり次のようになる begin begin raise 'foo' rescue e = StandardError.new p 'before rescue', e.cause raise e end rescue => e p 'after raise', e.cause end # "before rescue" # nil # "after raise" # #<RuntimeError: foo></runtimeerror:>…