C
C#•2y ago
hengi

Unsigned data types for reference implementation

Usage of unsigned types in C# is discouraged apart from some edge cases. Would it be appropriate to use it if one is implementing a Standard which requires unsigned types? What would be an appropriate alternative, if that's not a valid use case for unsigned data types?
2 Replies
cap5lut
cap5lut•2y ago
unsigned types arent really discouraged, its just that signed types are more in use and thus recommended. but u have simply a use case for the unsigned types, so use them 😉
hengi
hengiOP•2y ago
thanks for your response! I guess you're right, it would be a pain to project the properties of unsigned types on a signed one..
Want results from more Discord servers?
Add your server