From: Bruno H. <br...@cl...> - 2008-11-09 22:56:32
|
Sam Steingold wrote: > > The default value of a public API should be public. It'd > > be good to make #'sys::main-loop public (either as a function, or as a > > constant, I don't mind.) > > I made as explicit :INIT-FUNCTION NIL argument reset *DRIVER* to > SYS::MAIN-LOOP. > I think this is better than exposing MAIN-LOOP because it is > counter-intuitive for an INIT-function to be called main-LOOP, > while :INIT-FUNCTION NIL clearly means that there is no init, just the REPL. What if the user wants an init function which does some initialization and then starts a REPL? :init-function (lambda () (my-init) (...what comes here??...)) Therefore I think we need to make the MAIN-LOOP function public. You are certainly right about the name. How about (defun ext:standard-read-eval-print-loop () (sys::main-loop)) or (defconstant ext:+standard-read-eval-print-loop+ #'sys::main-loop) ? Bruno |