@

Notes are declared with an at-sign (@) after a declaration. 1 Notes can be declared before or after a procedure or struct block.

my_const :: 3; @note

my_procedure :: () @note {}
my_procedure :: () {} @note // trailing declaration supported too

my_struct :: struct @note {}
my_struct :: struct {} @note // trailing declaration supported too

The note operator signals the compiler to add a string to the notes array of the declared type.

See Also


  1. Notes aren’t just for struct members. They can go on any declarations.
    “Demo: Run-Time (and Compile-Time) Type Information” YouTube, uploaded by Jonathan Blow, Feb 11, 2015, https://youtu.be/JoNkttD_MUs?t=3538 

jailang 2019 pixeldroid
https://github.com/pixeldroid/jailang
programming pages theme v0.5.21 (https://github.com/pixeldroid/programming-pages)