define-metas and select-from-metas have inconsistent signature
#184
Closed
opened 6 years ago by sorawee
·
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?
In a sense that I can:
and there's no error, but then when I
(select-from-metas 'foo metas)
, I get a contract error that'(1 2 3)
is not axexpr
.I see no reason why we should limit metas to just
xexpr
(for example, it might be useful to have a metadata about raw date and time, which can be represented as a list of numbers), but if restricting to onlyxexpr
is your decision, it probably should error out atdefine-metas
, notselect-from-metas
.I suppose you're right that a meta value needn't be restricted to an
xexpr
. However,metas
are extracted before the file is run, and cached to disk, so the meta value still needs to be something that is a) not computed and b) serializable.