Re: [pollen] Creating a meta from a .rkt file

2019-04-10 Thread Matthew Butterick
> On Apr 10, 2019, at 11:33 AM, Daniel Sockwell wrote: > > I guess what I'm asking, though, is whether it's possible to use > `define-meta` in a non-pollen file (i.e., in a racket file). No, because `define-meta` depends on special cooperation with the `#lang pollen` reader (= the thing

Re: [pollen] Creating a meta from a .rkt file

2019-04-10 Thread Daniel Sockwell
> Values on the right-hand side of `define-meta` can't be expressions or > variables imported from elsewhere. They can only be raw datums. Thanks, that makes sense. I guess what I'm asking, though, is whether it's possible to use `define-meta` in a non-pollen file (i.e., in a racket file).

Re: [pollen] Creating a meta from a .rkt file

2019-04-10 Thread Matthew Butterick
Values on the right-hand side of `define-meta` can't be expressions or variables imported from elsewhere. They can only be raw datums. This is a deliberate limitation that goes back early in Pollen history, when folks decided they wanted to be able to extract metas (quickly) without evaluating

[pollen] Creating a meta from a .rkt file

2019-04-10 Thread Daniel Sockwell
Does anyone know if it is possible/what I would need to `require` to be able to define a meta from a Racket file that is imported from my pollen file? I tried requiring `pollen` and `pollen/setup`, but `define-meta` still didn't work. Thanks in advance and my apologies if I missed something