top | item 31547627

(no title)

elanning | 3 years 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.

discuss

order

kgeist|3 years ago

How do you decide that the time has come?