chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-janitors] #1215: Warn about too specific type declarations


From: Chicken Trac
Subject: Re: [Chicken-janitors] #1215: Warn about too specific type declarations
Date: Fri, 27 Apr 2018 14:45:24 -0000

#1215: Warn about too specific type declarations
------------------------------------+---------------------
            Reporter:  syn          |      Owner:
                Type:  enhancement  |     Status:  new
            Priority:  minor        |  Milestone:  someday
           Component:  scrutinizer  |    Version:  4.10.x
          Resolution:               |   Keywords:
Estimated difficulty:  hard         |
------------------------------------+---------------------

Comment (by evhan):

 I added this feature, but it produces far too many warnings. Stuff like
 this:

 {{{
 Note: at toplevel:
   declared type `(procedure chicken.base#error (* #!rest *) noreturn)' of
 toplevel variable `chicken.base#error' is more specific than inferred type
 `(procedure chicken.base#error (#!rest) . *)'

 Note: at toplevel:
   declared type `(procedure chicken.base#void (#!rest *) undefined)' of
 toplevel variable `chicken.base#void' is more specific than inferred type
 `(procedure chicken.base#void (#!rest) *)'

 Note: at toplevel:
   declared type `(procedure chicken.base#sleep (fixnum) undefined)' of
 toplevel variable `chicken.base#sleep' is more specific than inferred type
 `(procedure chicken.base#sleep (*) *)'
 }}}

 We could add all sorts of rules about whether to issue a warning or not in
 order to cut down on the noise, but I'm not sure this feature would be
 worth the added complexity. Plus, we already issue a warning when the
 types are ''incompatible'', so I'm more inclined to just close this
 wontfix.

--
Ticket URL: <https://bugs.call-cc.org/ticket/1215#comment:2>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]