[cmucl-imp] (eq x nil)
8 Jan
2011
8 Jan
'11
8:12 a.m.
The compiler transforms (null x) and (not x) to (if x t nil). We could to the same for (eq x nil). That would make a small difference in code like: (defun foo (x z) (cond (x 1) ((eq x nil) 2) (z 3))) (defun bar (x z) (cond (x 1) ((not x) 2) (z 3))) In bar, the compiler is able to remove the z test. Helmut
8 Jan
8 Jan
3:53 p.m.
On 1/8/11 3:12 AM, Helmut Eller wrote:
The compiler transforms (null x) and (not x) to (if x t nil). We could to the same for (eq x nil). That would make a small difference in code like: Good idea. I'll look into it. Without looking, it seems like a relatively simple thing to do.
Ray
5647
Age (days ago)
5647
Last active (days ago)
1 comments
2 participants
participants (2)
-
Helmut Eller -
Raymond Toy