I'm tweaking my toy LISP and I want to add varargs to function calls. I think th...

@mcc@mastodon.social

I'm tweaking my toy LISP and I want to add varargs to function calls. I think the way I'm going to do this is by designating some character as flag for the the "…rest" list. "." is out of the question, as is $. I'm thinking it would be @. like

set-fn 'funcname '(arg1 arg2 @rest) '() {
print "count of arguments: " (+ 2 (len rest)) ln
}

trying to think if something like * or & would be more appropriate. * is python I guess?