[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: dlw at MIT-AI
- From: David L. Andre <DLA at MIT-EECS>
- Date: Mon ,27 Apr 81 11:23:00 EDT
- Cc: LISP-FORUM at MIT-AI, BUG-LISPM at MIT-AI, DLA at MIT-EECS
- In-reply-to: Your message of 27-Apr-81 0048-EDT
Oh, well, I guess I shouldn't send messages when I'm totally burned out,
because you're not the first to say you couldn't read my message...
The difference between the kind of keyword arguments that OPEN takes and
the kind of keyword arguments which other functions such as MAKE-ARRAY,
LOAD-PATCHES, etc use, is that OPEN takes a LIST of keywords, whereas the other
examples take an evaluated &rest arg. My comment was basically, why don't you
reach some kind of convention in keyword arguments rather than have this difference?
So OPEN would translate to OPENF as follows:
(OPEN "DLA; ILLIT ERATE" '(:NOERROR :READ :BYTE-SIZE 4) 'MY-EXCEPTION-HANDLER)
(OPENF "DLA; ILLIT ERATE"
Actually, this illustrates yet another inconsistency in keyword arguments, in that
some functions (like LOAD-PATCHES) have keywords which optionally take arguments,
and others (like MAKE-ARRAY) take keywords which ALWAYS take arguments. I personally
like the "optionally taking arguments", but I've heard differently from others...