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

September 2023

S M T W T F S
     12
3456789
10111213141516
171819 20212223
24252627282930

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 2nd, 2025 11:07 am
Powered by Dreamwidth Studios