C
C#16mo 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
cap5lut16mo 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
hengi16mo 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..