|
From: | Greg Hill |
Subject: | Lisp: Functions for multiple comparisons |
Date: | Wed, 20 Nov 2002 13:14:16 -0800 |
For example, a special form using an 'eq comarison might be named 'meq and be called like:
(meq (char-syntax (following-char)) ?w ?_) instead of using (memq (char-syntax (following-char) '(?w ?_))) or(or (eq (char-syntax (following-char)) ?w) (eq (char-syntax (following-char)) ?_))
or(let ((syntax (char-syntax (following-char)))) (or (eq syntax ?w) (eq syntax ?_)))
Is there already something like that that I simply am not yet aware of? If not, am I wrong in thinking that the kind of special forms I am imagining would be computationally more efficient than any of the alternatives shown above?
--Greg
[Prev in Thread] | Current Thread | [Next in Thread] |