[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Q:Meaning of [ ] in the bb notes example?
From: |
Felix Winkelmann |
Subject: |
Re: [Chicken-users] Q:Meaning of [ ] in the bb notes example? |
Date: |
Mon, 11 Oct 2004 08:35:37 +0200 |
User-agent: |
Mozilla Thunderbird 0.5 (X11/20040208) |
Michael Erdmann wrote:
Hallo,
what is the meaning of the [ ] in the let statement od the notes example
in bb extension.
In docu (sect. 5.2) it is mentioned as an alternative for ( ). But why
has been used?
It's just convention. You can use whatever you want. Personally,
I use it to visually distinguish pairs of bindings, for example:
(let ([foo ...] [bar ...]) ...)
or:
(cond [xy ...] ...)
Since many editors do paren matching, this even helps sometimes
getting the paren-nesting right. Another frequent case:
(let-values ([(a b c) ...] ...) ...)
(here three '('s in a row become somewhat less legible.
cheers,
felix