From 1a962ee4b03f51f46a5979bfefc954f35ee3a1b7 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 30 Mar 2022 13:12:18 -0400 Subject: Re-named "as_is" to "these" to avoid confusion with the new type-annotation macro names. --- lux-python/source/program.lux | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lux-python/source/program.lux') 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 [ (as_is (import: java/lang/String +(with_expansions [ (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 (as_is ) - @.python (as_is))) + (for @.old (these ) + @.jvm (these ) + @.python (these))) -(with_expansions [ (as_is (def: (call_macro inputs lux macro) +(with_expansions [ (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 (as_is ) + (for @.old (these ) + @.jvm (these ) @.python (def: (expander macro inputs lux) @@ -448,7 +448,7 @@ @.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 [ (as_is (def: (extender phase_wrapper) +(with_expansions [ (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 (as_is ) + (for @.old (these ) + @.jvm (these ) @.python (def: (extender phase_wrapper handler) -- cgit v1.2.3