New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more inconsistent coercions for Bool #6142
Comments
From zefram@fysh.orgOn the same lines as [perl #127019], the Bool.Real coercion is
The same goes for coercions from other enum types. -zefram |
From @geekosaurOn Thu, Mar 9, 2017 at 2:55 PM, Zefram <perl6-bugs-followup@perl.org> wrote:
This should be your hint. Enums *are* numeric, specifically Int. -- |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgBrandon Allbery via RT wrote:
I'm aware of that, and that's why I call this an LTA rather than So I'm not saying in this ticket that it's a priori wrong for True.Real
I'd like it to be a self-consistent language, as far as possible. -zefram |
From @geekosaurSelf-consistency is itself a fuzzy concept. In any case I am specifically thinking of a discussion recently in IRC (That said, there may actually be some lingering inconsistency left over On Thu, Mar 9, 2017 at 3:41 PM, Zefram <zefram@fysh.org> wrote:
-- |
From zefram@fysh.orgBrandon Allbery via RT wrote:
I would be interested in seeing that discussion.
I haven't noticed any such inconsistency between Bool and other enums.
-zefram |
From @geekosaurThe discussion I'm thinking of starts around here: On Thu, Mar 9, 2017 at 4:04 PM, Zefram <zefram@fysh.org> wrote:
-- |
From sidhekin@gmail.comOn Thu, Mar 9, 2017 at 9:17 PM, Brandon Allbery <allbery.b@gmail.com> wrote:
I need another hint. How does that explain that True.Real is True, while True.Int is 1? Eirik |
From @skidsOn Fri, 10 Mar 2017 00:31:58 -0800, sidhekin@gmail.com wrote:
Current behavior: $ perl6 -e 'say Less.Real' (both Ints) I think this is consistent with how the .Numeric/.Real role "casts" Classes that already do Numeric behave in a manner consistent |
Migrated from rt.perl.org#130969 (status was 'open')
Searchable as RT130969$
The text was updated successfully, but these errors were encountered: