How to detect the maximum depth of recursion allowed (re: Karl Seguin at https://twitter.com/karlseguin/status/521592595282006016 )