Decide on syntax for mesh!
macro
#13
Labels
area:macros
Area: proc macros in lox-macros
category:improvement
Category: Improvement
needs:bikeshed
Needs: small decisions of some kind
priority:low
Priority: Low
Milestone
We have two arrays:
vertices
andfaces
. For each element we can specify additional properties after the "core info". The question is how to specify multiple properties. Potential syntaxes:As tuple:
Simple, but feels like too many parenthesis, especially for a single element.
As tuple with special casing single value:
Problem: if someone tries to specify a position as tuple (after all
(f32, f32, f32)
implementsPos3Like
), strange errors will occur (it will be parsed as three properties instead of one). Generally, it feels like too much magic IMO.Comma separated, with semicolon seperated elements
This diverges from the normal Rust "list like syntax":
[a, b, c]
.The text was updated successfully, but these errors were encountered: