Counting Block Nesting Depth in Ruby
This problem recently popped up on the SF Ruby mailing list, in which someone needed to count the current block nesting depth during runtime. It turned out to be a fun and informative exercise in exception handling, thread-safety, and metaprogramming. So I wrote an article :-)
Post a comment