The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.lisp
From: Cliff Crawford <cj...@cornell.edu>
Date: Sat, 27 Mar 2004 20:34:47 GMT
Local: Sat, Mar 27 2004 3:34 pm
Subject: Re: Method specialization style question
On 2004-03-26, Peter Seibel <pe...@javamonkey.com> wrote:
| | Anyone have any stylistic preference for one or the other? (I guess | the practical difference is just trading a type-error in for a | no-applicable-method error if withdraw is ever called with a | non-numeric second argument.) A third possibility would be to use CHECK-TYPE: (defmethod withdraw ((account account) amount) Now if you call WITHDRAW with a non-numeric AMOUNT, the debugger will -- "The perfection of art is to conceal art." -- Quintilian You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||