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
"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
"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