minus-squareowsei@programming.devtoProgrammer Humor@lemmy.ml•Python is great, but stuff like this just drives me up the walllinkfedilinkarrow-up12·2 months agoEven if they do have the same in-memory representation, you may want to assert types as different just by name. AccountID: u64 TransactionID: u64 have the same in-memory representation, but are not interchangeable. linkfedilink
minus-squareowsei@programming.devtoProgrammer Humor@lemmy.ml•Added Bugs to Keep my joblinkfedilinkarrow-up1·2 months ago“src/utils/typing: added tests for isArray” we have 90% coverage minimum linkfedilink
minus-squareowsei@programming.devtoProgrammer Humor@lemmy.ml•the hardest exam questionlinkfedilinkarrow-up2·2 months agoI don’t know how luxon works, but isWeekend could be a property instead of a function linkfedilink
Even if they do have the same in-memory representation, you may want to assert types as different just by name.
AccountID: u64
TransactionID: u64
have the same in-memory representation, but are not interchangeable.