scsh-users
[Top] [All Lists]

Re: printf type formatting?

To: scsh-news@zurich.ai.mit.edu
Subject: Re: printf type formatting?
From: George Demmy <gdemmy@layton-graphics.com>
Date: 05 Nov 2002 12:16:53 -0500
Organization: MindSpring Enterprises
rthappe@mathematik.uni-freiburg.de (RT Happe) writes:

> On 4 Nov 2002, George Demmy wrote:
> > format.scm represents an implementation of modest subset of Common
> > Lisp's format. A more complete implementation can be found in Aubrey
> > Jaffer's SLIB.
> 
> Have you tried that with scsh *and* success, i.e. did that implementation
> pass slib's test suite?  When I checked slib's FORMAT with my modular
> wrapper (instead of slib's dynamic loading mechanism), it didn't work that
> well.  Cf.
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-8&safe=off&selm=r5d6zmijjo.fsf%40c117.mathematik.uni-freiburg.de
> 
> Therefore I think the original poster might be better off with the
> string-lib solution he suggested himself.
> 
> rthappe
> 
> 

My post was too terse, and upon re-reading it might appear that I
ignored the original post. Sorry about that. The point I was wanting
to get across was that if the original poster was hell-bent to roll
his own formatting functions, then he might consider lifting the
format *design* from Common Lisp and or SLIB, and maybe some of the
source code from SLIB as well. That's why the CL Hyperspec link was in
my post. If the goal is a truly one-off and "format functionality
never to be used again", then kluging something together with SRFI-13
stuff might be a good compromise. But if the goal is to kludge
something together to get it out the door as soon as possible, one
might consider using PERL ;) Down that path path lies madness,
however. The spirit of scsh abhors a kludge and is tormented by
needless reimplementation...

To answer your question, I have not tried calling SLIB from scsh, but
I have mucked about with SLIB with other scheme implementations and I
have lifted portions of SLIB code for one-off hacks and I like SLIB's
thorough documentation -- hence the recommendations.

-- 
George Demmy

<Prev in Thread] Current Thread [Next in Thread>