I'm just beginning to dig in to Racket macros, so forgive the newbie
question :) Is it possible to create a macro that will result in multiple
functions being defined?
I have a bunch of predicate functions, and I'm creating a parallel set of
assert functions that look like the following:
The begin form can encapsulate multiple definitions like this:
(require (for-syntax racket/sequence
(define-simple-macro (define-asserts predicate:id ...)
#:with (assert-name ...)
(for/list ([id (in-syntax #'(predicate ...))])
So simple in hindsight - thanks! I didn't realize begin could be used that
way, but it makes perfect sense, and that was the key missing piece for me.
On Tuesday, November 20, 2018 at 9:56:08 AM UTC-5, Shu-Hung You wrote:
> The begin form can encapsulate multiple definitions like this:
I'm getting much faster startup times.
And the initial freeze when loading a file after initial startup - is that
actually faster or has it been amortized using lazy techniques?
On Monday, November 19, 2018 at 6:35:43 PM UTC-5, Matthew Butterick wrote:
> > On Nov 19, 2018, at 2:06 PM,
Mail list logo