You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated C++ library for DSLX is great! But it's unfortunate that C++ doesn't allow iterating over enum classes. However, since we generate the code, it'd be great to provide this in the generated C++ for the converted DSLX enum definitions. I think proto enums have something similar?
One use case: Run every case of this enum through some C++ test.
Current best alternative workaround (limit 100 words)
Manually reference each enum member, possibly missing some.
Your view of the "best case XLS enhancement" (limit 100 words)
We should generate an array like kAllFoos in addition to enum class Foo. @meheff pointed to some similar generated code for ops here:
What's hard to do? (limit 100 words)
The generated C++ library for DSLX is great! But it's unfortunate that C++ doesn't allow iterating over enum classes. However, since we generate the code, it'd be great to provide this in the generated C++ for the converted DSLX enum definitions. I think proto enums have something similar?
One use case: Run every case of this enum through some C++ test.
Current best alternative workaround (limit 100 words)
Manually reference each enum member, possibly missing some.
Your view of the "best case XLS enhancement" (limit 100 words)
We should generate an array like
kAllFoos
in addition toenum class Foo
. @meheff pointed to some similar generated code for ops here:xls/xls/ir/op.h
Lines 34 to 46 in 9a266ca
The text was updated successfully, but these errors were encountered: