Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

glsl::syntax::StructSpecifier::fields should use NonEmpty instead of Vec #24

Open
hadronized opened this issue Aug 30, 2017 · 3 comments
Labels

Comments

@hadronized
Copy link
Owner

No description provided.

@LuisAyuso
Copy link

LuisAyuso commented Oct 14, 2017

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?

@hadronized
Copy link
Owner Author

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. ;)

@LuisAyuso
Copy link

#30

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants