[plt-scheme] match: syntax checking of =

From: David Van Horn (dvanhorn at cs.uvm.edu)
Date: Mon May 3 09:06:58 EDT 2004

I recently made the following typo:

    (match 'x ((= symbol?) #t))

instead of

    (match 'x ((= symbol? _) #t))

The former causes an infinite loop when using the syntax checker or evaluating 
the expression (as does (match 'x ((=) #t))).  The pat production for = is (= 
expr pat) so I wonder why this doesn't raise a syntax error.  Is this a bug?

(206.1-cvs11mar2004)

Thanks,
David



Posted on the users mailing list.