[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is dofile really called for anymore?
- From: Pan Shi Zhu <pan.shizhu@...>
- Date: Tue, 6 Apr 2010 16:48:24 +0800
On Tue, Apr 6, 2010 at 4:05 PM, Patrick Donnelly <email@example.com> wrote:
> This isn't quite true. dofile is not protected from errors during
> load. Apparently the only functional difference between the two code
> snippets is the stack traceback:
So the only difference is the stack traceback, there seems no reason
using assert instead of dofile(), and I think dofile() is better in
this case, right?