4 ms·
Several of the solutions use a library function to do the main parsing. It makes sense if one is available. And it may be more robust if the library code is wel
by raiph 14y ago
Several of the solutions use a library function to do the main parsing. It makes sense if one is available. And it may be more robust if the library code is well written.
I'm a Perl fan. I love Perl 6. Imo, if you partition the Perl 6 solution into (what will clearly become) library functions (the grammar bit) and actual code (the "for @cases" bit), it's shorter and more readable than most of the other solutions.