From 489289e85be1bd9c569e93f3b2daab44c8c1912f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 01 Dec 2024 22:00:40 +0800 Subject: [PATCH] Add a few more differences from C --- README.md | 9 +++++++++ diff --git a/README.md b/README.md index a8496496195a593ac81c6b929920b4adc4dba327..4024aa6131a194f7a061f4c51900671ba513b535 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,12 @@ You may use `canfail` to be explicit about the reverse in function definitions, or to override a function when calling it. In the latter case, if the function does not define an `onfail` section, you must wrap it in a `try {...} onfail {...}` block. + +## Other non-trivial differences from C + +1. Instead of `errno`, we use multiple return values to indicate errors where + appropriate. +2. Minimize undefined behavior, and set stricter rules for + implementation-defined behavior. +3. Support compile-time code execution. +4. More powerful preprocessor? -- 2.48.1