Re:PHP doesn't need 'finally'
by jrockway on Friday December 10, 2010 @07:54AM
(#1991487)
It compiles with "use strict", and it's not abuse.
The reason you can't compile it is because guard is not defined, nor are cwd, cleanup, and the other placeholder functions I used. When you are relying on the parser to add parens for you (and let you omit "sub"), you have to have the function in scope. Compare:
The reason you can't compile it is because guard is not defined, nor are cwd, cleanup, and the other placeholder functions I used. When you are relying on the parser to add parens for you (and let you omit "sub"), you have to have the function in scope. Compare:
And