|
|
|
|
|
by elanning
1486 days ago
|
|
This reminds of a principle I use. Always use the weakest type for the problem at hand. I don’t use a struct/record where a simple dictionary or tuple would do. I don’t use a class when it could be a plain record. I don’t use an interface when it could simply be a lambda. When the time comes, I promote the types as necessary. |
|