[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #f = #none ?
- To: firstname.lastname@example.org (Sam Pilato)
- Subject: Re: #f = #none ?
- From: Bob Kerns <email@example.com>
- Date: Thu, 19 Nov 92 13:44:37 -0500
- Cc: firstname.lastname@example.org, email@example.com
- In-reply-to: Your message of "Thu, 19 Nov 92 10:18:44 EST." <9211191518.AA16847@taiyo.kurz-ai.com>
Date: Thu, 19 Nov 92 10:18:44 EST
From: firstname.lastname@example.org (Sam Pilato)
(values :frob frob-val)
I agree with Fry. I would much prefer being able to:
(foo :frob (if frob-p frob-val <use-the-default-value>)
I wasn't disagreeing with Fry. But I would not like there
to be some distinguished value which could not be passed
in, because it would be interpreted as "use the default value".
What if you remodularize your code, so that the appropriate
place to do the defaulting is not in that function, but instead
in a function three levels of call down?
The multiple-value-call construct has the correct semantics.
The syntax is awkward. However, you can package it up in
(defaulting foo :frob (if frob-p frob-val :use-default)