diff options
author | Eduardo Julian | 2021-09-08 18:57:27 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-09-08 18:57:27 -0400 |
commit | 880cb37c261df20b7b8d968a909557bbc63d6b7f (patch) | |
tree | eb94b5572f3b03b855927c67e171b73ceb4db6c4 /lux-python/source | |
parent | 9ae7272d50b64dc9c8651e7a684abc007d4f2caf (diff) |
Normalized syntax of "exception:", "actor:" and "message:".
Diffstat (limited to 'lux-python/source')
-rw-r--r-- | lux-python/source/program.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux index 8cc2987af..649a77b95 100644 --- a/lux-python/source/program.lux +++ b/lux-python/source/program.lux @@ -140,7 +140,7 @@ (recur (++ idx) (array.write! idx lux_value output)))) (#try.Success output))))) - (exception: (unknown_kind_of_object {object java/lang/Object}) + (exception: (unknown_kind_of_object [object java/lang/Object]) (exception.report ["Object" (java/lang/Object::toString object)])) @@ -209,7 +209,7 @@ ... (exception.except ..unknown_kind_of_object [(:as java/lang/Object host_object)]) (#try.Success host_object)))) - (exception: (cannot_apply_a_non_function {object java/lang/Object}) + (exception: (cannot_apply_a_non_function [object java/lang/Object]) (exception.report ["Non-function" (java/lang/Object::toString object)])) @@ -357,8 +357,8 @@ [_ (execute! content)] (evaluate! context (_.var (reference.artifact context)))))))))))})) -(with_expansions [<jvm> (as_is (exception: .public (invaid_phase_application {partial_application (List Any)} - {arity Nat}) +(with_expansions [<jvm> (as_is (exception: .public (invaid_phase_application [partial_application (List Any) + arity Nat]) (exception.report ["Partial Application" (%.nat (list.size partial_application))] ["Arity" (%.nat arity)])) |