Skip to content

Commit

Permalink
Merge branch 'master' into ryan/rts-outside-nix
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Mar 5, 2024
2 parents 2e03565 + 90013cb commit 6f6e44b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Motoko compiler changelog


## Unreleased
## 0.11.0 (2024-03-05)

* motoko (`moc`)

Expand All @@ -27,6 +26,17 @@
for the `system` capability. In order to call these, the full call hierarchy needs to be
adapted to pass the `system` capability.

* Introduced the feature for precise tagging of scalar values (#4369).

Controlled by flag `--experimental-rtti` (off by default). Minor performance changes for
arithmetic expected. We advise to only turn on the feature for testing, as currently no
productive upsides exist (though future improvements will depend on it), and performance
of arithmetic will degrade somewhat. See the PR for the whole picture.

* motoko-base

* Added `Option.equal` function (thanks to ByronBecker) (dfinity/motoko-base⁠#615).

## 0.10.4 (2024-01-10)

* motoko (`moc`)
Expand Down
7 changes: 7 additions & 0 deletions doc/md/base/Option.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ func isNull(x : ?Any) : Bool

Returns true if the argument is `null`, otherwise returns false.

## Function `equal`
``` motoko no-repl
func equal<A>(x : ?A, y : ?A, eq : (A, A) -> Bool) : Bool
```

Returns true if the optional arguments are equal according to the equality function provided, otherwise returns false.

## Function `assertSome`
``` motoko no-repl
func assertSome(x : ?Any)
Expand Down

0 comments on commit 6f6e44b

Please sign in to comment.