Language Update
-
Support 32-bit unsigned integers
let num = 100U // Literal for 32-bit unsigned integers requires the 'U' suffix
-
WASM Backend Export Improvements
When exporting functions with a return type of Unit in the WASM backend, the exported function previously had a type of
(result i32)
. Now, the MoonBit compiler will automatically generate and export a wrapper function with no return value. -
moonbitlang/core API Consistency Adjustments
- Unified
forall
/exist
andall
/any
toall
/any
- Unified
contains
andmember
tocontains
- Unified
IDE Updates
-
Bug Fix
Fixed a bug where the type prefix would be lost when renaming methods.
-
Enhancement
Added autocomplete functionality for match clauses of
try ... catch ...
expressions.
Build System Updates
-
Diagnostic Information Rendering
Added an experimental feature for rendering diagnostic information. This can be enabled by setting the environment variable
MOON_RENDR=1
.
-
Command Changes
Changed the
moon bench
command tomoon generate-build-matrix
. Thebench
subcommand will be used for future purposes.
Please note that to be in line with the core library development, we will update on a daily basis in the next few weeks.