[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parse-number
- To: DLA at SCRC-TENEX at MIT-MC
- Subject: parse-number
- From: Daniel L. Weinreb <dlw at SCRC-TENEX at MIT-MC>
- Date: Thu, 23 Dec 1982 17:40:00 -0000
- Cc: lisp-designers at SCRC-TENEX at MIT-MC, Common-Lisp at SU-AI
- In-reply-to: The message of 23 Dec 82 00:06-EST from David L. Andre <DLA at SCRC-TENEX>
Ah. That reminds me why parse-number works the way it does.
parse-number is intended to be a tool to help you parse your way through
a string. If you encounter a digit on your way from the left end of the
string to the right end, you call parse-number, and it reads in as much
of the string as is a number and tells you where it stopped so that you
can continue to parse the string. Whether you expected the entire
string to be a number or not is up to you, and parse-number can be
useful in both cases so the "best" default value for the
fail-if-not-whole-string argument is not obvious. I don't think it's
too important as long as the documentation makes it clear.