From 489289e85be1bd9c569e93f3b2daab44c8c1912f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 1 Dec 2024 22:00:40 +0800 Subject: Add a few more differences from C --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index a849649..4024aa6 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? -- cgit v1.2.3