in reply to Re: Why do closures save memory?
in thread Why do closures save memory?
eval is expensive
Just to pick a nit, I'm sure what you meant to say was "eval of a string is expensive".
The cost of wrapping eval around a block is less than the cost of a subroutine call. Since eval of a block is the standard way to catch exceptions I think it's important we don't leave people with the impression that catching exceptions is expensive.
|
|---|