From 7249707e7c09be68dfb7507ba363efd3300a0141 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 16 Jun 2022 21:37:38 -0400 Subject: De-sigil-ification: suffix : [Part 14] --- stdlib/source/library/lux.lux | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'stdlib/source/library/lux.lux') diff --git a/stdlib/source/library/lux.lux b/stdlib/source/library/lux.lux index 28507c829..41f6ab0ed 100644 --- a/stdlib/source/library/lux.lux +++ b/stdlib/source/library/lux.lux @@ -4182,7 +4182,7 @@ _ (failure (all text#composite - "Can only 'open:' structs: " (symbol#encoded implementation) + "Can only 'use' structs: " (symbol#encoded implementation) " : " (type#encoded interface)))))) (def (localized module global) @@ -4194,7 +4194,7 @@ _ global)) -(def .public open: +(def .public use (macro (_ tokens) (case (..parsed (all ..andP (..maybeP (all ..andP @@ -4240,7 +4240,7 @@ implementations)) .let [[pre_defs implementations] pre_defs,implementations]] (in (|> pre_defs - {#Item (` (..open: + {#Item (` (..use (~ (text$ current_module)) (~ (text$ imported_module)) (~ (text$ import_alias)) @@ -4250,7 +4250,7 @@ {.#None} - (failure (..wrong_syntax_error (symbol ..open:)))))) + (failure (..wrong_syntax_error (symbol ..use)))))) (def (imported_by? import_name module_name) (-> Text Text (Meta Bit)) @@ -5021,7 +5021,7 @@ (` ((~ (symbol$ macro)) (~+ parameters)))) referrals))))) -(def .public using +(def .public require (macro (_ _imports) (do meta#monad [current_module ..current_module_name -- cgit v1.2.3