Toward the goal of making Tinyscheme more suitable for
Scheme->C->Scheme calling, please expose more of the
Functionality to read the values of Scheme symbols
from C callbacks. Being able to simply eval symbols
from C makes life much easier. One suggestion: expose
find_slot_in_env and slot_value_in_env. Another
suggestion: Provide this thru an entry point suitable
for nested calling (as requested in another feature
list_length. It's very common to want to know how
long a list a C callback was given. One important use
is the defensive programming technique of rejecting
wrong-length argument lists. IMO this is so central
that it should not require re-entering Scheme or
"rolling your own" via is_pair and pair_cdr.
And while they are much less crucial and I stop short
of requesting this, I see no downside to exposing
mk_empty_string, append, reverse, and eqv.
Log in to post a comment.