How about just modifying the initial readtable so that #! be a line
comment when invoked with --script ?
*I means, not just the script mode, but also the REPL mode.
If we always ignore the shebang line, we can add the unit test code to the
library source file and run unit test at script mode by execute the
#+script (main), at last we can load the library without modifying one line.
We'll get a more developer-friendly implement, the cost is just change a
little source code, isn't it?
Also, note that asdf3 and cl-launch allow you to write CL scripts in a
*I think the library-level support is not enough to write small tools.
Imaging this: we have to write some code to import the asdf3 or cl-launch
or other library, and then set the configuration for asdf3 or cl-launch, we
at last can write code for the script, so crazy!*
*It may be perfect that a lisp script which we can run it and load it
without extra modification.*
Sorry for my poor English.
2013/2/18 Faré <fahree@...>
> On Mon, Feb 18, 2013 at 11:22 AM, Attila Lendvai
> <attila.lendvai@...> wrote:
> >> I suggested that before but someone pointed out that it's probably nicer
> >> to do it the other way. User can have a line like
> >> (pushnew :interactive *features*)
> > not trying to push this specific question in either direction, but
> > there's an important difference: to implement this solution every user
> > who desires this feature must act (potentially
> > differently/incompatibly), while the :script solution requires only
> > one actor who commit the change into sbcl.
> How about just modifying the initial readtable so that #! be a line
> comment when invoked with --script ?
> Also, note that asdf3 and cl-launch allow you to write CL scripts in a
> portable way.
> —♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics•
> I love deadlines. I love the whooshing sound they make as they fly by.
> — Douglas Adams
> The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
> is your hub for all things parallel software development, from weekly
> leadership blogs to news, videos, case studies, tutorials, tech docs,
> whitepapers, evaluation guides, and opinion stories. Check out the most
> recent posts - join the conversation now.
> Sbcl-devel mailing list
Follow your dream!