Skip Menu |

This queue is for tickets about the MooX-Types-MooseLike CPAN distribution.

Report information
The Basics
Id: 84480
Status: resolved
Priority: 0/
Queue: MooX-Types-MooseLike

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: AHRef
This is not documented, but it looks like the intention is for it to be a shortcut for: ArrayRef[HashRef] But if so, it's broken. For example, the following arrayrefs pass the constraint: [ {}, 1, 2, 3 ] [ 1, 2, 3, {} ] But the following two fail: [ ] [ 0, {} ] If this behaviour is intended, then it seems quite a bizarre type constraint.
Thanks for the note. I've put AHRef to rest. On Sat Apr 06 19:12:00 2013, TOBYINK wrote: Show quoted text
> This is not documented, but it looks like the intention is for it to > be a shortcut for: > > ArrayRef[HashRef] > > But if so, it's broken. For example, the following arrayrefs pass the > constraint: > > [ {}, 1, 2, 3 ] > [ 1, 2, 3, {} ] > > But the following two fail: > > [ ] > [ 0, {} ] > > If this behaviour is intended, then it seems quite a bizarre type > constraint.