From gcartier@jazzscheme.org Fri May 11 18:55:50 2007 From: Guillaume Cartier To: gambit-list@iro.umontreal.ca Subject: Re: [gambit-list] Adding engineering notation support? Date: Fri, 11 May 2007 18:55:43 -0400 Message-ID: <4644F46F.8090203@jazzscheme.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2682857987980250723==" --===============2682857987980250723== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi Shawn, I am pretty sure Gambit's readtable can do what you want. Others will be better able than me on explaining them... The point I wanted to make is that one of Scheme / Lisp's greatest strength is it's ability to treat code as data and reason about code itself. If you extend the reader, then many great tools out there (code analyzer, cross-references builders, ...) will not be able to work on your Scheme code as they rely on Scheme's uniform read syntax. Personally I try to have syntaxes than match the domain I'm working on but that are still plain-old lisp. An example for html: ( () ( (

"Hello world"))) Regards, Guillaume Shawn Hyam wrote: > I'm very interesting in adding support for engineering notation (M, k, > m, u, etc.) to numbers in Gambit. I'm curious if Gambit's readtables > would provide me with this kind of power, but I haven't been able to > glean too much information about them so far. Any pointers would be > greatly appreciated. > > thanks > Shawn > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambit-list mailing list > Gambit-list(a)iro.umontreal.ca > https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list > --===============2682857987980250723==--