|
From: | aditya siram |
Subject: | Re: [Ann]: An Implementation of the Shen programming language in Elisp and a call for help |
Date: | Fri, 13 May 2016 20:11:07 -0500 |
aditya siram <address@hidden> writes:
1. I can't seem to get rid of warnings when byte-compiling the generated "shen.el" [4] even though I have the byte-compile-warnings property the top of the file. I'm getting a lot of "unused lexical variable" warnings even though "lexical" is in the list of warnings.
Well, it seems you're not making use of the lexical variables you define. For example:
(shen/let NewHistory (shen/shen\.update_history NewLineread History) (shen/let Parsed (shen/fst NewLineread) (shen/shen\.toplevel Parsed)))))))
Here you create the `NewHistory' variable, but don't make use of it within the scope of the `shen-let'.
Similarly, there are things like:
(shen/let Record (shen/shen\.record-source V13163 KL) KL))))
where `Record` is not used within the relevant scope, and:
(shen/let NewVector (shen/vector (shen/- Limit 1)) (shen/shen\.tlv-help V14674 2 Limit (shen/vector (shen/- Limit 1))))))))
where `NewVector' is not used within the relevant scope, and so on.
So, why are you binding variables you don't make any use of after the initial binding?
Alexis.
[Prev in Thread] | Current Thread | [Next in Thread] |