News for hackers. Stuff that matters.
Re:Adorad Programming Language by sail0rm00n on Saturday September 18, 2021 @11:46PM (#28581519)
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)

There are no comments on this comment yet.