Idorobots / spartan

A small Lisp dialect that serves me as a test bed for programming language features.
MIT License
13 stars 3 forks source link

Unused self-recursive functions are not reported as unused. #169

Open Idorobots opened 2 years ago

Idorobots commented 2 years ago

See this fragment:

  (define (map f lst)
    (if (nil? lst)
        lst
        (cons (f (car lst))
              (map f (cdr lst)))))

The map function calls itself resulting in a registered use, hence not triggering the unused variable error.