diff options
Diffstat (limited to 'lux-python')
-rw-r--r-- | lux-python/source/program.lux | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux index b821f62c3..d6dc27186 100644 --- a/lux-python/source/program.lux +++ b/lux-python/source/program.lux @@ -72,7 +72,7 @@ [program ["/" compositor]]) -(with_expansions [<jvm> (as_is (import: java/lang/String +(with_expansions [<jvm> (these (import: java/lang/String "[1]::[0]") (import: (java/lang/Class a) @@ -351,11 +351,11 @@ )) (as org/python/core/PyObject it)))) )] - (for @.old (as_is <jvm>) - @.jvm (as_is <jvm>) - @.python (as_is))) + (for @.old (these <jvm>) + @.jvm (these <jvm>) + @.python (these))) -(with_expansions [<jvm> (as_is (def: (call_macro inputs lux macro) +(with_expansions [<jvm> (these (def: (call_macro inputs lux macro) (-> (List Code) Lux org/python/core/PyFunction (Try (Try [Lux (List Code)]))) (|> macro (org/python/core/PyFunction::__call__ (|> (ffi.array org/python/core/PyObject 2) @@ -391,8 +391,8 @@ {.#None} (exception.except ..cannot_apply_a_non_function [(as java/lang/Object macro)]))))] - (for @.old (as_is <jvm>) - @.jvm (as_is <jvm>) + (for @.old (these <jvm>) + @.jvm (these <jvm>) @.python (def: (expander macro inputs lux) @@ -448,7 +448,7 @@ @.jvm <jvm> @.python - (as_is (import: (dict [] ffi.Dict)) + (these (import: (dict [] ffi.Dict)) (import: (eval [ffi.String ffi.Dict] "try" Any)) (def: host @@ -486,7 +486,7 @@ [_ (execute! content)] (evaluate! context (_.var (reference.artifact context))))))))))))) -(with_expansions [<jvm> (as_is (def: (extender phase_wrapper) +(with_expansions [<jvm> (these (def: (extender phase_wrapper) (-> phase.Wrapper Extender) ... TODO: Stop relying on coercions ASAP. (<| (as Extender) @@ -510,8 +510,8 @@ (ffi.write! 4 (..to_host state))) handler)] (..read output)))))] - (for @.old (as_is <jvm>) - @.jvm (as_is <jvm>) + (for @.old (these <jvm>) + @.jvm (these <jvm>) @.python (def: (extender phase_wrapper handler) |