Jun. 7th, 2006

pvaneynd: (Default)
  • Do not assume :always does a check on an empty list:
    [1]> (loop :for x :in '() :always (oddp x))
    T
    is the correct result. But deep inside logic involving "have all entries that property?" it can be surprising.
  • 0 is not NIL. Stop laughing, it took me 2 days to find that one part of the program thought it was talking T/NIL while the other talked 0/1 or 2. One (declare (type boolean result)) and a few runtime errors later the program gives sane results again.

Profile

pvaneynd: (Default)
pvaneynd

October 2025

S M T W T F S
   1234
567891011
12131415161718
19202122 232425
262728293031 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 11th, 2025 02:27 am
Powered by Dreamwidth Studios