develooper Front page | perl.perl6.users | Postings from July 2020

Re: cannot create an instance of subset type

Thread Previous | Thread Next
Elizabeth Mattijsen
July 11, 2020 09:30
Re: cannot create an instance of subset type
Message ID:
> On 10 Jul 2020, at 23:37, Brad Gilbert <> wrote:
> I honestly think that there is an argument to be made that it shouldn't even be possible to write a `subset` without a `where` clause.

Making the "where" clause non-optional, is remarkably simple: removing a '?'

However, there appear to be quite a lot of tests in roast that depend on this behaviour, so either there *is* a perceived use of subsets without "where" clause, or we need to fix roast first.
Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About