aboutsummaryrefslogtreecommitdiff
path: root/lux-js/source
diff options
context:
space:
mode:
authorEduardo Julian2022-03-30 13:12:18 -0400
committerEduardo Julian2022-03-30 13:12:18 -0400
commit1a962ee4b03f51f46a5979bfefc954f35ee3a1b7 (patch)
treeb042049a8ff6036007d57c8253ce203a1ed90744 /lux-js/source
parent220c804f9136c73058802575ee49f3f769d5599f (diff)
Re-named "as_is" to "these" to avoid confusion with the new type-annotation macro names.
Diffstat (limited to '')
-rw-r--r--lux-js/source/program.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/lux-js/source/program.lux b/lux-js/source/program.lux
index 5e7cdd72f..450b4f9ae 100644
--- a/lux-js/source/program.lux
+++ b/lux-js/source/program.lux
@@ -78,7 +78,7 @@
"???"))
(for @.jvm
- (as_is (import: java/lang/String
+ (these (import: java/lang/String
"[1]::[0]")
(import: (java/lang/Class a)
@@ -458,10 +458,10 @@
)
@.js
- (as_is))
+ (these))
(for @.jvm
- (as_is (def: (call_macro inputs lux macro)
+ (these (def: (call_macro inputs lux macro)
(-> (List Code) Lux org/openjdk/nashorn/api/scripting/JSObject (Try (Try [Lux (List Code)])))
(let [to_js (is (-> Any java/lang/Object)
(|>> (as (Array java/lang/Object)) js_structure (as java/lang/Object)))]
@@ -502,7 +502,7 @@
)
(for @.jvm
- (as_is (def: (evaluate! interpreter alias input)
+ (these (def: (evaluate! interpreter alias input)
(-> javax/script/ScriptEngine unit.ID _.Expression (Try Any))
(do try.monad
[?output (javax/script/ScriptEngine::eval (ffi.as_string (_.code input)) interpreter)]
@@ -553,7 +553,7 @@
)
@.js
- (as_is (def: (eval code)
+ (these (def: (eval code)
(-> Text (Try (Maybe Any)))
... Note: I have to call "eval" this way
... in order to avoid a quirk of calling eval in Node