anyone here is using sealed-class as some sort of ...
# random
e
anyone here is using sealed-class as some sort of advanced enums?
g
Yes, of course. What is your case?
e
in one word, like c++, plus some nice things
- inheritance of basic bitwise operations - treated as ints - custom function extensions
g
Not sure how you can use Sealed class for such cases
e
sealed have everything except it's a boxed int
g
Sealed is just class, so can do anything what any other class for primitive int wrapping only solution is value types (long term) and inline classes
e
yeah, but both unavailable atm
g
Yes, so just classes/objects for now. Do you have performance problems with classes?
e
well, I still didnt find a solution that satisfy me completely.. at the moment I think I'll stay with simple and plain enum plus typealias for the bitmask