4 ms·
Is `2.days.ago` a beautiful way of expressing a relative date?
- iknowstuff 6y agoExtension traits are pretty common in Rust. They have to be explicitly imported so there is no ambiguity. I quite like the idea: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=7a49533392a72215784ce3402a940005 https://play.rust-lang.org/?version=stable&mode=debug&editio...
- yzahn 6y agoIt can be done in many languages. My point is, twisting your code so that it may read like prose, adds to the cognitive burden of reading & understanding it (in my eyes).