If I may offer a little editorial from the peanut gallery, I'm not a huge fan of this grand redefinition of ints as enums. It might be idiomatic for C#, but it doesn't feel spiritually aligned with the C API it's wrapping. I'm unwinding it in my Dart projection, but it means extra work for me to try and return back to the API that you're scraping from. I'm guessing that less strongly-typed languages might well dislike this even more.
Is there a different approach? Perhaps keeping these as ints but using an attribute for the parameter and the constants to provide a categorization hint without changing the actual type signature of these APIs? #346 is a good example of what I'm talking about here.
Thanks for listening!
/cc @sotteson1 @kennykerr
If I may offer a little editorial from the peanut gallery, I'm not a huge fan of this grand redefinition of
ints asenums. It might be idiomatic for C#, but it doesn't feel spiritually aligned with the C API it's wrapping. I'm unwinding it in my Dart projection, but it means extra work for me to try and return back to the API that you're scraping from. I'm guessing that less strongly-typed languages might well dislike this even more.Is there a different approach? Perhaps keeping these as
ints but using an attribute for the parameter and the constants to provide a categorization hint without changing the actual type signature of these APIs? #346 is a good example of what I'm talking about here.Thanks for listening!
/cc @sotteson1 @kennykerr