- Onyx panic specs
- Compile / run program
- Import / export
default -
@[Builtin] struct Bool
-
@[Builtin] decl ƒ eq?(self: Bool, other: Bool) -> Bool
- Implicit builtin import
- Locations refactoring
- Scope refactoring
- Introduce qualifiers
- Start w/ simple ids
- Replace
export (default)
w/pub
- Function is declared w/
fn
- Struct decls (
pub struct Foo { }
)- Fields (
pub x: T
)
- Fields (
- Freestanding function decls (
fn main();
,fn Foo::main
(?)) - Freestanding function impls
- Struct function decls (
pub fn foo();
) - Struct function impls (
pub fn foo() { }
) -
@[Builtin] function Bool::eq?(self, other: Bool) -> Bool
-
@[Builtin] function ::eq?(self: Bool, other: Bool) -> Bool
-
@[Builtin] function .eq?(other: Self) -> Self
- Freestanding runtime type annotation (
x : Bool
) -
alias == to eq?