[Please keep racket-lang in CC.]

> Is the help mainly for simpler #lang like Beg Stud? (#lang racket
> seems to have lots of place where [ appears and inside xexpr as well.
> So it may not be all that easy to keep track for Dr, I am guessing.)

It is meant to enforce a particular paren style for Racket.  I'd say
it's more of a general Racket convention than a Beginner Student
convention, since it helps professional Racketeers as well.

Even though '[' is interchangeable with '(', the parens do have to
match with their corresponding ']' and ')'.  Because of that, the
distinguished paren shapes help to localize paren mismatch errors when
they occur.  e.g. the error that's produced when tryting to evaluate:

    (define x 16)
    (cond [(equal? x 42
              'ok])

will point at the ']'.

The editor has these paren styles built in to specific forms.  You can
see which forms get affected by looking at Preferences/Editing/Square
Bracket.


Personally, I would leave them on and let DrRacket manage the parens for me.
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to