Function Documentation

Currently you are able to define what type of value a variable accepts in a function by typing

function foo(bar: string) 
      return type(bar)
end

I was wondering if it’s possible to define what it does or the usage of a function so when you are using the typechecker, it will display it like it does for built in functions.

Thank you!

1 Like

That isn’t possible on the developer’s end. The closest you can get to that is by using comments in your code.

2 Likes