πŸ’¬ Reply by kazaika

2024-11-15 πŸ”„ programmerhumor ┃ RE: ?

I’d argue that the reason this is so bad in other languages is because of horrible default implementations.
Look at tostring in java, getting a somewhat printable object would be easy if the default implementation would use reflection or sth to print the object, but instead it prints hash gibberish no one cares about.

kazaika

πŸ”„ programmerhumor

πŸ’¬ Replies

2024-11-16 Ephera ┃ 1πŸ’¬

I always hated the implementation for .toString() of Duration. It gives you a string like that: PT8H6M12.345S (not a hash)
Apparently, it’s an ISO 8601 thing, but what the hell am I supposed […]

────

View thread

────

πŸ“‘ Local feed

πŸ•οΈ Communities

πŸ”₯ Hashtags

πŸ”Ž Search posts

πŸ”‘ Sign in

πŸ“Š Status

πŸ›Ÿ Help