Last active
October 14, 2024 06:23
-
-
Save ivanjeremic/fb5cc3d5bd7660db9afd5448c85a0e9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings is fn { | |
foo, bar, ex from args; | |
count is var num 0; | |
// if on same line no curly braces needed just like in JavaScript. | |
Title is str <h1>Hello World!</h1>; | |
person is struct { | |
name is str "Ivan"; | |
age is num 33; | |
children is arr [strunct { name = str "Marina"; age = num 7}]; | |
} | |
// destructuring | |
name, age from person | |
// multiline string | |
return str { | |
<Title /> | |
<button>{count}</button> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment