File tree 1 file changed +2
-2
lines changed
docs/docs/reference/metaprogramming
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -459,7 +459,7 @@ and allow for undefined compiler behavior if they are not. This is analogous to
459
459
the status of pattern guards in Scala, which are also required, but not
460
460
verified, to be pure.
461
461
462
- [ Multi-Stage Programming] ( ./staging.md ) introduces one additional methods where
462
+ [ Multi-Stage Programming] ( ./staging.md ) introduces one additional method where
463
463
you can expand code at runtime with a method ` run ` . There is also a problem with
464
464
that invokation of ` run ` in splices. Consider the following expression:
465
465
@@ -475,7 +475,7 @@ the splice will reduce the expression `run('x)` to `x`. But then the result
475
475
476
476
is no longer phase correct. To prevent this soundness hole it seems easiest to
477
477
classify ` run ` as a side-effecting operation. It would thus be prevented from
478
- appearing in splices. In a base language with side- effects we'd have to do this
478
+ appearing in splices. In a base language with side effects we would have to do this
479
479
anyway: Since ` run ` runs arbitrary code it can always produce a side effect if
480
480
the code it runs produces one.
481
481
You can’t perform that action at this time.
0 commit comments