Skip to content

Commit 4c91fa2

Browse files
aviateskserenity4
andauthored
Apply suggestions from code review
Co-authored-by: Cédric Belmant <[email protected]>
1 parent a0a15a0 commit 4c91fa2

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/construct.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -784,10 +784,6 @@ julia> @interpret sum(a)
784784
8
785785
```
786786
"""
787-
macro interpret(ex0)
788-
return interpret(__module__, ex0)
789-
end
790-
791-
macro interpret(xs...)
792-
return interpret(__module__, xs...)
787+
macro interpret(ex0, exs...)
788+
return interpret(__module__, ex0, exs...)
793789
end

src/types.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
An interpreter that subtypes this type can implement its own evaluation strategies, by
55
overloading the certain methods in JuliaInterpreter that are defined for this base type.
6-
The default behaviors of `Interpreter` is same as that of [`RecursiveInterpreter`](@ref),
6+
The default behavior of `Interpreter` is same as that of [`RecursiveInterpreter`](@ref),
77
meaning it will recursively interpret all `:call` expressions.
88
"""
99
abstract type Interpreter end
@@ -13,6 +13,8 @@ abstract type Interpreter end
1313
1414
`RecursiveInterpreter` is an [`Interpreter`](@ref) that recursively interprets any `:call`
1515
expressions in the code being interpreted.
16+
17+
With this interpreter, code runs in fully interpreted mode; it will never be compiled for execution.
1618
"""
1719
struct RecursiveInterpreter <: Interpreter end
1820

@@ -23,7 +25,7 @@ struct RecursiveInterpreter <: Interpreter end
2325
in the code being interpreted using Julia's normal code execution engine with the native
2426
compiler.
2527
26-
`JuliaInterpreter.Compiled` is alised to `NonRecursiveInterpreter` for backward compatibility.
28+
`JuliaInterpreter.Compiled` is aliased to `NonRecursiveInterpreter` for backward compatibility.
2729
"""
2830
struct NonRecursiveInterpreter <: Interpreter end
2931

0 commit comments

Comments
 (0)