|
|
|
|
|
by sail0rm00n
1737 days ago
|
|
Neat! I was curious why types came after the variable name for structs, but for functions they came before the variable name. Are you in the middle of transitioning from one to the other right now? e.g. struct MyStruct {
x int
}
struct MyStruct2 {
y string
}
func Int add(Int x, Int y) {
return x + y
}
(both from https://github.com/adorad/adorad/blob/dev/docs/docs.md) |
|