glsl
glsl copied to clipboard
glsl::syntax::StructSpecifier::fields should use NonEmpty instead of Vec
Hi, I would like to help with this project. Can you explain this issue a little more? I mean, How does this improve code? NonEmpty is just an alias to vec? is it enforcing the constraint somehow that I can not see?
Currently, it’s just an alias, yes. It’s not perfect – as in Haskell’s data NonEmpty a = a :| [a], but it’s something. I’ll edit the issue to make it clear what is needed. ;)
#30