Is there a way to return an expression using quasiquotes while still getting rid of the beginning parenthesis?
For example:
`(a ,(foo))
could return actually return
`a *foosvalue)
I realize this seems kind of random. I'm trying to write a func开发者_如何学Pythontion in scheme that returns an expression that can then be evaluated using eval
. Is there a better way for returning just expressions?
Quasiquoting can only return valid S-expressions. You can return something like a symbol, but not part of a list. You can splice multiple elements from a list into a quasiquoted region using ,@
, though.
精彩评论