Search found 3 matches
- Thu Jul 17, 2008 9:18 am
- Forum: Common Lisp
- Topic: closures
- Replies: 6
- Views: 18434
Re: closures
Well, I just recently saw this somewhere....ah, the config.lisp file for SBCL, or CLISP, or CMUCL...not sure which at the moment. (let ((cache nil)) (defun long-site-name () (if cache cache (setq cache (some-lengthy-calculation-with-IO-from-shell))))) so there's an idiom for regular use of closures ...
- Tue Jul 08, 2008 6:59 am
- Forum: Common Lisp
- Topic: CLOS usage
- Replies: 22
- Views: 58532
Re: CLOS usage
I was originally going to vote for "When it makes sense" (or even a step down), until I realized that I frequently have a print-object method defined for my structs or conditions or whatever, and use conditions, and use defmethod on structs, etc. CL-SQL uses it, and I use that as well.
- Tue Jul 08, 2008 6:07 am
- Forum: Common Lisp
- Topic: What are you doing in Common Lisp lately?
- Replies: 26
- Views: 67840
Re: What are you doing in Common Lisp lately?
I'm writing a card-scanner configuration tool for my company. We have about 20 retirement communities, and are using three different types of proximity ID cards. Each type has its own scanner model, and requires its own custom (non-factory) configuration. One of the sweet things about Lisp (some par...