Language comparisons
Java
make it look the same
Javascript
Go
await ref.foo(...);
await ref.bar(...);
await ref.fooBar(...);
await Promise.all([
ref.foo(...),
ref.bar(...),
ref.fooBar(...)
]);
Koga
ref foo(...);
ref bar(...);
ref fooBar(...);
All {
ref foo(...);
ref bar(...);
ref fooBar(...);
}
C
generics
Assembly
Go
Go
varFoo, err := GetFoo()
if err != nil {
return err
}
sliceBar, err := SliceTheBar(varFoo)
if err != nil {
return err
}
err := CheckBarSlice(sliceBar)
if err != nil {
return err
}
Koga
Try {
this getFoo(varFooPtr);
this sliceTheBar(sliceBarPtr, varFoo);
this checkBarSlice(sliceBar);
} {
Task fail();
};
Rust
Rust
𑀁𑀅𑀆𒀀𒀖
𒁃𑁍𓀀
𑂃𑂉𑀬𑁈𑁊
𑁍𓀃𓂀𑃟
𑄟𑄑𒁴 𓆐
𒀯𒋳𒉸𒅂𒈗𓂋
𑁓𓌻𓇠
Koga
Int x 0;
x + 10 * 5 - 2;
ref fooBar(x);
Zig
Zig
foo(allocator: Allocator, ...) {
...
}
bar(allocator: Allocator, ...) {
...
}
foobar(allocator: Allocator, ...) {
...
}
Koga
foo(...) {
...
}
bar(...) {
...
}
foobar(...) {
...
}
Jai
Jai
Koga
Int x 0;
x + 10 * 5 - 2;
ref fooBar(x);