2 ms·
Versus a sort of: my_type = my_list | my_object ? You can see why this is better :-)
by oblio 6y ago
Versus a sort of:
my_type = my_list | my_object
?
You can see why this is better :-)
- okamiueru 6y agoAll I can say is that it is certainly neat :)
- mixmastamyk 6y agoI'd always return a list. Makes the client code simpler.
- oblio 6y agoYou would. But not every input comes from you :-)