We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bool int float ptr str std.vec.Vector
This is how you declare data structures in Gullian
enum Genre { Mistery, Action, Romance } struct Book { genre: Genre, title: str, author: str } struct Hq { genre: Genre, title: str, author: str } union BookAndHq { book: Book, hq: Hq }
fun add(a: int, b: int) : int { return a + b } # You can also override functions fun add(a: float, b: float) : int { return a + b }