DEV Community

Discussion on: 100 Languages Speedrun: Episode 47: Raku (Perl 6) Regular Expressions

Collapse
 
jj profile image
Juan Julián Merelo Guervós

They don't really reuse letter codepoints; they use a different codepoint in Unicode. They match <:N> alright, and also <:Nl>:

raku -e 'say "Ⅻ " ~~ /<:Nl>/'
「Ⅻ」
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
taw profile image
Tomasz Wegrzanowski

Nice one, I didn't know they had separate characters for Roman numerals in Unicode. I don't think it's actually used in the wild much, still, nice.