Skip to content

Quark 0.3.0

Pre-release
Pre-release

Choose a tag to compare

@ephf ephf released this 07 Dec 21:04
· 99 commits to main since this release

Added builtin Option<T> syntax using the? operator along with optional coalescing.

i32? /* same as */ Option<i32>

i32? maybe_number = Option::Some(15);
struct Struct {
    i32 field;
    void method(self) {}
}

Struct? object = Option::None();

i32? field = object?.field;
object?.method();

Full Changelog: 0.2.1...0.3.0