[plt-scheme] What is non-clever closing of brackets?
Thanks Robby.
On 7/31/07, Robby Findler <robby at cs.uchicago.edu> wrote:
> Similarly, try to type this:
>
> (let ((x 5)) x)
> (cond ((= 1 2) 'world-ends) (else 'whew))
>
> You'll end up with
>
> (let ([x 5]) x)
> (cond [(= 1 2) 'world-ends] [else 'whew])
>
> BUT, this is really designed for people to type like this:
>
> [let [[x 5]] x]
>
> and get the above.
>
> Robby
>
> On 7/30/07, Robert Nikander <nikander at nc.rr.com> wrote:
> >
> > On Jul 29, 2007, at 1:04 PM, Grant Rettke wrote:
> >
> > > There are key commands to do non-clever closing of brackets.
> > >
> > > What does this mean?
> >
> > Try to type this:
> >
> > (+ 1 2]
> >
> > You can't because the ']' becomes a ')'. The non-clever versions
> > allow you to insert the ']', despite it not matching.
> >
> > Rob
> > _________________________________________________
> > For list-related administrative tasks:
> > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>