3 ms·
As much as I like Go, I find it a bit of an unfair game when the standard library has a ParseIP function.
by AeroNotix 14y ago
As much as I like Go, I find it a bit of an unfair game when the standard library has a ParseIP function.
- raiph 14y agoSeveral 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.