Skip to content
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

Assign name for anon type tiny #8

Merged
merged 1 commit into from
Dec 15, 2024
Merged

Assign name for anon type tiny #8

merged 1 commit into from
Dec 15, 2024

Conversation

kfly8
Copy link
Owner

@kfly8 kfly8 commented Dec 15, 2024

This pull request provides name for anon Type::Tiny.

use kura Monday    => StrMatch[ qr/\Amonday\z/i ];
use kura Tuesday   => StrMatch[ qr/\Atuesday\z/i ];
use kura Wednesday => StrMatch[ qr/\Awednesday\z/i ];
use kura Thursday  => StrMatch[ qr/\Athursday\z/i ];
use kura Friday    => StrMatch[ qr/\Afriday\z/i ];
use kura Saturday  => StrMatch[ qr/\Asaturday\z/i ];
use kura Sunday    => StrMatch[ qr/\Asunday\z/i ];

use kura Weekday => Monday | Tuesday | Wednesday | Thursday | Friday;

say Weekday;
# =>
# BEFORE: StrMatch[ qr/\Amonday\z/i ] | StrMatch[ qr/\Atuesday\z/i ] | StrMatch[ qr/\Awednesday\z/i ] ...
# AFTER: Weekday

@kfly8 kfly8 merged commit eebe308 into main Dec 15, 2024
14 checks passed
kfly8 added a commit that referenced this pull request Dec 16, 2024
Changelog diff is:

diff --git a/Changes b/Changes
index d17a020..783c9f1 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,9 @@ Revision history for Perl extension kura
 
 {{$NEXT}}
 
+0.08 2024-12-16T00:44:13Z
+    - Assign name for anon type tiny #8
+
 0.07 2024-12-15T07:59:25Z
     - Feature: more flexibility in creating type constraints #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant