Spurious Style Warning for CL-like functions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
I get style-warnings such as:
; caught STYLE-WARNING:
; &OPTIONAL and &KEY found in the same lambda list: (STRING &OPTIONAL (EOF-ERROR-P T) (EOF-VALUE NIL) &KEY (START 0) (END NIL) (PRESERVE-
WARNING: Lisp compilation had style-warnings while compiling #<CL-SOURCE-FILE "com.informatim
for functions that have the same symbol-name and the same signature as functions in CL with both &optional and &key parameters.
Those style warnings should be disabled by default.
(I would say, that on the contrary, if you find a function named READ-FROM-STRING and it doesn't have the same &optional and &key parameters as CL:READ-
This warning has nothing to do with "CL-like" functions.
It's produced whenever the compiler sees &OPTIONAL and &KEY in the same lambda list.
As it happens, read-from-string uses that error-phone convention, which is neither here nor there.
So:
1. it's not a spurious warning,
2. it's not going to be disabled by default; you could propose that on the mailing list
3. it would be a bad idea to issue more warnings just because some user-defined function had a symbol-name resembling another in a different package, standard or otherwise.