From: Peter Seibel
Subject: ~:{...~} equivalent to ~{~1{...~:}~}?
Date: 
Message-ID: <m3llbtocj2.fsf@javamonkey.com>
It seems that ~:{...~} will behave the same as ~{~1{...~:}~}. Likewise
··@{...~} and ·@{~1{...~:}~} should be equivalent unless I'm missing
something. So am I missing something?

-Peter

-- 
Peter Seibel                                      ·····@javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp

From: Carl Taylor
Subject: Re: ~:{...~} equivalent to ~{~1{...~:}~}?
Date: 
Message-ID: <BUFxd.1130175$Gx4.214256@bgtnsc04-news.ops.worldnet.att.net>
"Peter Seibel" <·····@javamonkey.com> wrote in message 
···················@javamonkey.com...
> It seems that ~:{...~} will behave the same as ~{~1{...~:}~}. Likewise
> ··@{...~} and ·@{~1{...~:}~} should be equivalent unless I'm missing
> something. So am I missing something?

In LW:

CL-USER 6 > (format t "~:{~A ~}" '((foo) (bar) (baz) (quux)))
FOO BAR BAZ QUUX
NIL

CL-USER 7 > (format t "~{~1{~A ~:}~}" '((foo) (bar) (baz) (quux)))
FOO BAR BAZ QUUX
NIL

CL-USER 8 > (format t ···@{~A ~}" '((foo) (bar) (baz) (quux)))
(FOO)
NIL

CL-USER 9 > (format t " ·@{~1{~A ~:}~} " '((foo) (bar) (baz) (quux)))
 (FOO)
NIL

The first and second do yield the same result. But the third and fourth are 
slightly different. Note the result (FOO) is indented by one space in the 
last example.

clt 
From: Peter Seibel
Subject: Re: ~:{...~} equivalent to ~{~1{...~:}~}?
Date: 
Message-ID: <m3y8fsn30i.fsf@javamonkey.com>
"Carl Taylor" <··········@att.net> writes:

> "Peter Seibel" <·····@javamonkey.com> wrote in message
> ···················@javamonkey.com...
>> It seems that ~:{...~} will behave the same as ~{~1{...~:}~}. Likewise
>> ··@{...~} and ·@{~1{...~:}~} should be equivalent unless I'm missing
>> something. So am I missing something?
>
> In LW:
>
> CL-USER 6 > (format t "~:{~A ~}" '((foo) (bar) (baz) (quux)))
> FOO BAR BAZ QUUX
> NIL
>
> CL-USER 7 > (format t "~{~1{~A ~:}~}" '((foo) (bar) (baz) (quux)))
> FOO BAR BAZ QUUX
> NIL
>
> CL-USER 8 > (format t ···@{~A ~}" '((foo) (bar) (baz) (quux)))
> (FOO)
> NIL
>
> CL-USER 9 > (format t " ·@{~1{~A ~:}~} " '((foo) (bar) (baz) (quux)))
>  (FOO)
> NIL
>
> The first and second do yield the same result. But the third and
> fourth are slightly different. Note the result (FOO) is indented by
> one space in the last example.

Uh, don't you think that has something to do with the extra space at
the beginning of the format string. ;-)

-Peter

-- 
Peter Seibel                                      ·····@javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp