mirror of
https://github.com/RoBaertschi/tt.git
synced 2025-04-16 05:53:30 +00:00
25 lines
279 B
Markdown
25 lines
279 B
Markdown
# Designs
|
|
|
|
Playground for language design dessisions
|
|
|
|
## Function Calls
|
|
|
|
```tt
|
|
fn hi(arg1: i32, arg2: i32) = {
|
|
arg1 + arg2
|
|
// Hi
|
|
};
|
|
|
|
fn main() = {
|
|
|
|
// Args
|
|
|
|
arg1 := 2;
|
|
arg2 := 2;
|
|
|
|
//hi(arg1, arg2) |> hi(arg2);
|
|
//hi(arg1, arg2) |> hi(arg1, |);
|
|
};
|
|
|
|
```
|