[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
YES-OR-NO-P and Y-OR-N-P
- To: ALAN at MIT-MC
- Subject: YES-OR-NO-P and Y-OR-N-P
- From: JONL at MIT-MC (Jon L White)
- Date: Fri, 3 Apr 81 20:25:00 GMT
- Cc: (BUG LISP) at MIT-MC, (BUG LISPM) at MIT-MC
- Original-date: 3 APR 1981 1525-EST
Date: 5 March 1981 21:17-EST
From: Alan Bawden <ALAN at MIT-MC>
Why does y-or-n-p REQUIRE that I supply an argument? I would think that
it was completely clear what I want if I just call it with no arguments.
Why doesn't yes-or-no-p go to the trouble to strip leading and trailing
spaces from what the user types?
In case this hasn't been answered before, YES-OR-NO-P now ignores spaces,
and zero arguments is acceptable. Did the LISPM version ever permit the
interchange-ability of the first and second arg? namely is it ok to
say (YES-OR-NO-P "What foo?" some-stream) as well as
(YES-OR-NO-P some-stream "What foo?")
Clearly these two arguments can be distinguished by data-type, and position
in the argument list is unimportant.