back

by lerno·1y ago·view on hn ↗
I saw what you wrote about the enums, anything else? And feel free to add issues for things that feel off.
1 comments
Thank you! I appreciate you opening the issue with regarding to enum's "elements". I would have to take a serious look at C3 to be able to be useful, but I cannot do it right now due to some health and financial struggles. :( Hopefully soon enough though! I want to have C3 as a better C alternative.
Amusingly enough, I found that the compiler also accepted MyEnum.len (completely undocumented!). That was an easter egg!

But I'm trying to update the docs for types now. It's reasonable to just have all the compile time type properties in one place so people can find them.

I saw ".len" somewhere, I think I did mention it in my comment[1]. :)

Thank you for updating the docs!

[1] Oh, apparently I did, here: https://news.ycombinator.com/item?id=43954980, I quoted what I read in the documentation (?, may have been just on some part of the website) which included ".len", it is said somewhere as such: ".len or .elements returns the number of enum values".