Yeah, I'm not sure either.

// Carl

On Sun, Aug 10, 2014 at 7:27 AM, Jonathan Scott Duff via RT
<perl6-bugs-follo...@perl.org> wrote:
> On Sun Feb 26 09:00:11 2012, masak wrote:
>> <gfldex> there are a few things missing in Temporal, though
>> <gfldex> like Date.new(now);
>> <gfldex> you have to do Date.new(DateTime.now)
>> <masak> how about Date.today?
>> <masak> if it's missing, that's an omission :)
>> <masak> yeah, I want Date.today. that makes perfect sense.
>> <masak> nom: say Date.today
>> <p6eval> nom 9d39e8: OUTPUT«2012-02-26␤»
>> <masak> oh! there it is! :)
>> <masak> we could add Date.now as a synonym, but that feels only half-
>> important.
>> <gfldex> nom: say Date.new(now);
>> <p6eval> nom 9d39e8: OUTPUT«Default constructor only takes named
>> arguments [...]
>> <masak> nom: say Date(now)
>> <p6eval> nom 9d39e8: OUTPUT«Method 'Date' not found for invocant of
>> class 'Instant' [...]
>> <masak> arguably that should work.
>> * masak submits rakudobug
>> <jnthn> masak: You implement method postcircumfix:<( )> in Date.
>> <masak> ooh
>> <jnthn> I'm pretty sure I already wired up that case :)
>
> See 
> https://github.com/rakudo/rakudo/commit/b86a152cc175171a4bd89e789c58ff7c7f5f62b6
>
> Not sure we should have a postcircumfix on Date when we can easily get what 
> we want from .new()
>
> -Scott

Reply via email to