aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/meta/type/dynamic.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/meta/type/dynamic.lux16
1 files changed, 8 insertions, 8 deletions
diff --git a/stdlib/source/library/lux/meta/type/dynamic.lux b/stdlib/source/library/lux/meta/type/dynamic.lux
index 90c0b3837..eccb312e2 100644
--- a/stdlib/source/library/lux/meta/type/dynamic.lux
+++ b/stdlib/source/library/lux/meta/type/dynamic.lux
@@ -36,19 +36,19 @@
(def .public dynamic
(syntax (_ [value <code>.any])
(with_symbols [g!value]
- (in (list (` (.let [(~ g!value) (~ value)]
- ((~! ..abstraction) [(.type_of (~ g!value)) (~ g!value)]))))))))
+ (in (list (` (.let [(, g!value) (, value)]
+ ((,! ..abstraction) [(.type_of (, g!value)) (, g!value)]))))))))
(def .public static
(syntax (_ [type <code>.any
value <code>.any])
(with_symbols [g!type g!value]
- (in (list (` (.let [[(~ g!type) (~ g!value)] ((~! ..representation) (~ value))]
- (.is ((~! try.Try) (~ type))
- (.if (.at (~! //.equivalence) (~' =)
- (.type_literal (~ type)) (~ g!type))
- {try.#Success (.as (~ type) (~ g!value))}
- ((~! exception.except) ..wrong_type [(.type_literal (~ type)) (~ g!type)]))))))))))
+ (in (list (` (.let [[(, g!type) (, g!value)] ((,! ..representation) (, value))]
+ (.is ((,! try.Try) (, type))
+ (.if (.at (,! //.equivalence) (,' =)
+ (.type_literal (, type)) (, g!type))
+ {try.#Success (.as (, type) (, g!value))}
+ ((,! exception.except) ..wrong_type [(.type_literal (, type)) (, g!type)]))))))))))
(def .public (format value)
(-> Dynamic (Try Text))