[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is (provide 'foo) at the start good or bad?
From: |
Stephen J. Turnbull |
Subject: |
Re: Is (provide 'foo) at the start good or bad? |
Date: |
Fri, 12 Jun 2009 19:10:57 +0900 |
Alan Mackenzie writes:
> Putting `provide' at the end of the file means you've actually loaded
> the file when the provision is done. Thus if the load crashes (very
> common when you're developing), you don't have a spurious provided
> symbol.
Dunno about your Emacs, but my Emacs undoes the `provide' if `require'
does not complete successfully (assuming that Emacs itself is still
alive, of course :-).
This doesn't work for a plain `load', but I'm not sure I care, since
I rarely use a plain load in a program, and if a `load' crashes
interactively, presumably I intend to fix it immediately.
YMMV.
- Is (provide 'foo) at the start good or bad?, William Xu, 2009/06/11
- Re: Is (provide 'foo) at the start good or bad?, Leo, 2009/06/11
- Re: Is (provide 'foo) at the start good or bad?, Stephen J. Turnbull, 2009/06/12
- Re: Is (provide 'foo) at the start good or bad?, William Xu, 2009/06/12
- Re: Is (provide 'foo) at the start good or bad?, Thien-Thi Nguyen, 2009/06/12
- Re: Is (provide 'foo) at the start good or bad?, William Xu, 2009/06/12
- Re: Is (provide 'foo) at the start good or bad?, Stephen J. Turnbull, 2009/06/12
- Re: Is (provide 'foo) at the start good or bad?, William Xu, 2009/06/12
- Re: Is (provide 'foo) at the start good or bad?, Alan Mackenzie, 2009/06/12
- Re: Is (provide 'foo) at the start good or bad?,
Stephen J. Turnbull <=
- Re: Is (provide 'foo) at the start good or bad?, Davis Herring, 2009/06/12
- Re: Is (provide 'foo) at the start good or bad?, Stephen J. Turnbull, 2009/06/13
- Re: Is (provide 'foo) at the start good or bad?, Davis Herring, 2009/06/14
- Re: Is (provide 'foo) at the start good or bad?, Stephen J. Turnbull, 2009/06/14
- Re: Is (provide 'foo) at the start good or bad?, Davis Herring, 2009/06/15
- Re: Is (provide 'foo) at the start good or bad?, Stephen J. Turnbull, 2009/06/15
- Re: Is (provide 'foo) at the start good or bad?, Stefan Monnier, 2009/06/12