This queue is for tickets about the Params-Validate CPAN distribution.

Report information
The Basics
Id:
116914
Status:
rejected
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
kfm [...] plushkava.net
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Allow use of repetition operator as syntactic sugar
Hi. I think that it would be nice to be able to use the repetition operator to express the number of mandatory positional arguments. For instance: validate_pos(@_, 1 x 5, 0) In PP, the unfolding could work something like this: @arg_spec = map { ! ref && m/\A1+\z/ ? split // : $_ } @_
You can already do this by using the repetition operator, if you give the repetition operator a list: validate_pos( @_, (1) x 5, 0 );


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.