diff options
author | Eduardo Julian | 2022-03-30 13:12:18 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-03-30 13:12:18 -0400 |
commit | 1a962ee4b03f51f46a5979bfefc954f35ee3a1b7 (patch) | |
tree | b042049a8ff6036007d57c8253ce203a1ed90744 /lux-python | |
parent | 220c804f9136c73058802575ee49f3f769d5599f (diff) |
Re-named "as_is" to "these" to avoid confusion with the new type-annotation macro names.
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) |