3 ms·
If you need to differentiate between the empty string and None, you can, but in most situations the difference isn't important. E.g., would you ever actually di
by jessaustin 13y ago
If you need to differentiate between the empty string and None, you can, but in most situations the difference isn't important. E.g., would you ever actually display the values differently? Exaggerated explicitness can be misleading. E.g., if a year from now someone is making some changes, should they really be distracted by the fact that you've used 3 different if/else cases for the same semantic result?