Blank or empty X-expression?
#38
Closed
opened 10 years ago by basus
·
1 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
I'm following the decoding example from the third Pollen tutorial to define handlers on the
root
tag. In particular, I'm trying to automatically insert paragraph tags, but not insert<br/>
tags for single-line breaks. In order to do that, I'm using the following code, trying to reuse the functions indecode.rkt
:The main difference from the code in
decode.rkt
is that I'm trying to use'()
as the tag to insert in place of a line-break instead of'(br)
. However, this causes a contract violation because'()
is not a valid X-expression. Perhaps there should be some notion of a blank or empty X-expression that does not translated to anything?Actually, looking at the X-expression docs I realize that the empty string
""
is essentially a blank X-expression.