3 ms·
Using things like begin-for-syntax for compile-time evaluation isn't unusual for things like optimisation, but it'd bypass Typed Racket's safety here. And usua
by shakna 9y ago
Using things like begin-for-syntax for compile-time evaluation isn't unusual for things like optimisation, but it'd bypass Typed Racket's safety here.
And usually, you don't need to care if what you're calling is a macro or a procedure. Now you do.
- alphaalpha101 9y ago>And usually, you don't need to care if what you're calling is a macro or a procedure. Now you do. You always do, because macros can change evaluation semantics and procedures cannot.
- wtetzner 9y ago> but it'd bypass Typed Racket's safety here. Sort of, but the expansion of any macros is still type-checked.
- samth 9y agoIt doesn't bypass safety -- all code that's actually run is typechecked. It's just that we don't enforce anything about the macro itself, so the macro might error or produce code that results in a type error.