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