3 ms·
“a very intuitive syntax” I disagree. Even the simple examples already have baffling aspects to me. > match number ranges: match [1,200] OK. > match find (i
by Someone 1y ago
“a very intuitive syntax”
I disagree. Even the simple examples already have baffling aspects to me.
> match number ranges: match [1,200]
OK.
> match find (int[380,1400])
Hm. I guess the first one also matches floats? If so, does it match “Inf” and “NaN”? If not, what’s the difference with match[380,400]?
> match IPv4
> match ( pure[0,255] '.' pure[0,255] '.' pure[0,255] '.' pure[0,255] )
What’s the intuitive meaning of pure here? And what’s the difference between int[0,255] and pure[0,255]?
From the examples (https://github.com/scripal-git/scripal/blob/main/docs/Examples.md https://github.com/scripal-git/scripal/blob/main/docs/Exampl...):
match ( '678' )
ifMatch { match ( isNumber[900,999]( digit digit digit ) '-' digit );}
So, what’s the intuitive difference between int[900,999] and isNumber[900,999]?