Re: pretty-print for 1+

2013-09-18 Thread Taylan Ulrich B.
Chaos Eternal writes: > In guile-scsh, user would like the guile recognize -i as symbols > rather than complex numbers, is there any way? I doubt that there is a way. Arguably, one should use a different mechanism to represent command-line switches. Keyword symbols would probably be suitable f

Re: pretty-print for 1+

2013-09-17 Thread Chaos Eternal
yet there is another interesting thing: (symbol? 'a) => #t (symbol? '+a) => #t (symbol? '-a) => #t (symbol? 'b) => #t (symbol? '+b) => #t (symbol? '-b) => #t BUT: (symbol? 'i) => #t (symbol? '+i) => #f (symbol? '-i) => #f In guile-scsh, user would like the guile recognize -i as symbols rather t

Re: pretty-print for 1+

2013-09-17 Thread Ludovic Courtès
Brian Killian skribis: > On Thu, Sep 12, 2013 at 6:04 PM, Ludovic Courtès wrote: > >> Brian Killian skribis: >> >> > Using guile 2.0.9 and the ice-9 pretty-print module, when I apply: >> > >> > (pretty-print '(1+ 1)) >> > >> > I get: >> > >> > (#{1+}# 1) >> > >> > I was expecting: >> > >> > (1+

Re: pretty-print for 1+

2013-09-14 Thread Brian Killian
On Thu, Sep 12, 2013 at 6:04 PM, Ludovic Courtès wrote: > Brian Killian skribis: > > > Using guile 2.0.9 and the ice-9 pretty-print module, when I apply: > > > > (pretty-print '(1+ 1)) > > > > I get: > > > > (#{1+}# 1) > > > > I was expecting: > > > > (1+ 1) > > > > Is this an issue with pretty-

Re: pretty-print for 1+

2013-09-13 Thread Ludovic Courtès
Brian Killian skribis: > Using guile 2.0.9 and the ice-9 pretty-print module, when I apply: > > (pretty-print '(1+ 1)) > > I get: > > (#{1+}# 1) > > I was expecting: > > (1+ 1) > > Is this an issue with pretty-print or should I adjust my expectation? I think it’s an issue with ‘write’. Specific

pretty-print for 1+

2013-09-11 Thread Brian Killian
Using guile 2.0.9 and the ice-9 pretty-print module, when I apply: (pretty-print '(1+ 1)) I get: (#{1+}# 1) I was expecting: (1+ 1) Is this an issue with pretty-print or should I adjust my expectation?