4 ms·
Annotations are very useful, but they're pretty much ugly regardless of the language. Though I like the sibling comment's Scheme version where it's postfixed.
by elcritch 4y ago
Annotations are very useful, but they're pretty much ugly regardless of the language.
Though I like the sibling comment's Scheme version where it's postfixed. I've also come to appreciate Nim's sorta post-name annotation syntax since I can quickly read the name and type at the ends:
type MyComponent = object
position {.editable, animatable.}: Vector3
alpha {.editRange: [0.0..1.0], animatable.}: float32
I was pondering if languages could provide CSS like annotation. Like
#annotate: MyComponent.position { editable }