Kevin Reid wrote:
> OpenMCL warns on CASEs with multiple occurrences of a key. This patch
> should make SBCL do the same, for trivial cases.
> I'm not particularly familiar with SBCL internals; I don't know what
> the right place to put the definition of the
> DUPLICATE-CASE-KEY-WARNING condition is, nor if the test should
> instead be included in some existing file.
> I copied the structure of the test file from tests/compiler.pure.lisp.
I have to point out that O(n^2) algorithms for implementing warnings
might be considered bad style by certain users. Especially if it
prohibits compiling CASEs with lots of keys. Unless, of course, it is