[plt-scheme] square brackets on cond procedures?

From: Terrence Brannon (metaperl at urth.org)
Date: Tue Feb 10 03:44:01 EST 2004

R5RS does not show square brackets around (cond) ... why does HtDP use 
them? How does their meaning differ?

R5RS:

     (cond ((> 3 3) 'greater)
           ((< 3 3) 'less)
           (else 'equal))                   ==>  equal

HtDP:

(cond
  [(<= n 1000) .040]
  [(<= n 5000) .045]
  [(<= n 10000) .055]
  [(> n 10000) .060])




Posted on the users mailing list.