-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I'm starting to use JL in the REPL via @mlechu's experimental JULIA_USE_FLISP_LOWERING=0 hook.
This is a catch-all issue to document any issues I encounter:
- defining functions prints an anonymized name and seems to be the
typeof(f)instead off:julia> foo(x,y) = (x = y + y; x) #foo##0 (generic function with 1 method) julia> var"#foo##0"(1,2) ERROR: MethodError: no method matching var"#foo##0"(::Int64, ::Int64) julia> var"#foo##0".instance(1,2) 4
const x = ...does not work:julia> const x = 3 ┌ Info: JuliaLowering threw given input: │ code = │ quote │ $(Expr(:softscope, true)) │ const x = 3 │ end │ st0 = │ SyntaxTree with attributes kind,var_id,toplevel_pure,scope_type,name_val,syntax_flags,meta,scope_layer,value,is_toplevel_thunk,source │ [scope_block] │ scope_type │ [const] │ │ [=] │ │ x :: Identifier │ │ 3 :: Integer │ │ │ file = "REPL[7]" │ line = 1 └ mod = Main ERROR: LoweringError: #= REPL[7]:1 =# - unsupported `const` declaration on local variable
- non-
globaltop-level assignments do not work:julia> y = 13 13 julia> y ERROR: UndefVarError: `y` not defined in `Main` Suggestion: check for spelling errors or missing imports.
c42f
Metadata
Metadata
Assignees
Labels
No labels