4 ms·
> So I think instead of "scolding" the reader with a False here, maybe a Depends would be both more friendly and more well suited. I like this. False suggests
by nulbyte 5y ago
> So I think instead of "scolding" the reader with a False here, maybe a Depends would be both more friendly and more well suited.
I like this. False suggests it is objectively false, but you're right, it really depends on more information. And it's important that people working with dates and times understand that they need more information.
- atoav 5y agoAt least they need enough i formation to realize they don't wanna handle this entirely by themselves. The point however is that every dev sometimes needs to make assumptions about an calendar — even those who are smart enough not to write their own calendar. E.g. if you think about a typical fitness tracker of course the devs will have to make assumptions about weeks and months, instead of supprting every calendar under the sun. This is why a Depends makes a lot more sense here: Knowing that it exists is good, but you might not have to support it in an 1.0 release