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
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
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+
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-
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
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?