Talk:Longest string challenge: Difference between revisions

Line 150:
::: Based on discussions below this is really about explicit math. It wasn't intended to exclude functions that implicitly advance a pointer/cursor. --[[User:Dgamey|Dgamey]] 06:00, 14 August 2011 (UTC)
:::: In my brain, <tt>i++</tt> sits smack dab in the middle between the two. It is expressly an arithmetic operation (in adds 1 to i, thus forbidden) but is almost never used that way. Instead it is usually used in the way that you allow up there as something that implicitly advances a pointer (<tt>r = s[i++]</tt> or some such). Is that allowed or restricted?
::::: A number of languages have this as a short hand for <tt>i = i + 1</tt>, so I think it doesn't pass. There are a couple of solutions that use operations like substrings and detect failures/errors/etc. One of these might work for you? --[[User:Dgamey|Dgamey]] 23:26, 15 August 2011 (UTC)
 
=== Use only integers and strings ===
Anonymous user