On Sun, 2012-12-02 at 10:59 +0800, Daniel Hartwig wrote: > On 2 December 2012 00:31, nalaginrut <nalagin...@gmail.com> wrote: > > I think a colorized REPL is useful for our users. > > Will you accept a patch to 'pp' for colorized REPL? Or an easy way, a > > module with hook to do the same job, but output twice? > > Perhaps rather implement this as a separate, “advanced” interface. > Think: ipython vs. python. Most of the existing repl module would be > reusable for such a task. > > There are benefits to keeping the official package, shell, repl, > interface, whatsit free of unnecessary features. Such simplicity aids > in debugging, and facilitates a clear definition of language > semantics, compatibility, portability, extension, etc.. > > Also, are you aware of the multiple existing packages that provide > provide a Guile REPL with syntax highlighting (and *much* more)?. > Try > Geiser [1] or Quack [2], both of which run inside emacs and provide > integration between file and repl buffers (i.e. run expressions > directly from file buffers). >
Not all people use Emacs, although I use it. So neither Geiser nor Quack is the same case here. My effort is to color the result in REPL only, even for a non-Emacs user, which is a friendly feature for Guilers. We know Ruby has many IDEs to do the syntax highlight, but it also has a gem named 'wirble' to color the result in the REPL. I think such a REPL-plugin is easy to hack for Guile in few hours, so I'm going to give it a try. The only problem is to output twice seems ugly if I write an independent module without a patch for 'pp'. Or I don't want to modify the current REPL code personally. > Regards > > [1] http://www.nongnu.org/geiser/ > [2] http://www.neilvandyke.org/quack/ >