On 2013-01-23 21:46, Jonathan M Davis wrote:
I confess that it's syntax like that that makes dislike UFCS. I can see why
you might like it, but personally, I find it to be hideous.
But as long as you're not using -property, you can do 2.days to get a Duration
of 2 days, much as I wish that you couldn't.
The point is that the code should read like regular text. But if you do:
auto t = ago(days(2));
It's backwards but it's still better than:
auto a = Time.now() - 60 * 60 * 24 * 2; // don't know the exact syntax
--
/Jacob Carlborg