|
From: | Alex Shinn |
Subject: | Re: [Chicken-hackers] substring function and bounds checks |
Date: | Thu, 7 Feb 2013 08:20:25 +0900 |
[..] I don't think
(substring2 "foo" 0 10) -> "foo"
is conceptually wrong or sloppy as long as you know exactly what the
semantic of the function is ("give me at most N chars" -> perl or
"give me chars up to the Nth position or up to the end of the string
whatever the first" -> python, ruby).
[Prev in Thread] | Current Thread | [Next in Thread] |