Talk:Substring: Difference between revisions

m
added a section header to the first talk topic so that the TOC would be placed correctly.
m (→‎special cases: added query about a negative length for PL/I substr BIF. -- ~~~~)
m (added a section header to the first talk topic so that the TOC would be placed correctly.)
Line 1:
 
== why not have other cases ? ==
 
The individual subtasks here seem to cover only certain particular arbitrary use cases and not others. Why not have
* substring that starts at index n and ends at index m
Line 4 ⟶ 7:
* substring that starts at n places before the end of the string and is of length m
* and so on
 
 
Also, the last two subtasks seem very obscure and contrived. No language seems to have built-in methods for them. It seems that all the solutions are basically (1) find the character or substring we are looking for, and (2) use the first subtask ("starting from n characters in and of m length") to get the result. Why not just put the finding the character or substring part as a separate article? --[[Special:Contributions/76.173.203.32|76.173.203.32]] 09:28, 10 August 2009 (UTC)
Line 26 ⟶ 30:
 
[[User:Markhobley|Markhobley]] 23:30, 2 June 2011 (UTC)
 
 
==Substantial task changes affecting many examples==
 
The more examples their are for a task, the more effort it takes to change the essential task goals '''and get all the examples updated'''. This task is not draft and has 60 examples. You need to weigh any change to the task definition against the ability to get most of the examples updated, and I think 60 examples is too much for a change that adds another requirement to the task description when the task description without it wasn't so bad.
 
Line 34 ⟶ 40:
 
:: (regarding showing a string minus the 1<sup>st</sup> character): &nbsp; this is covered by the 1<sup>st</sup> task requirement. &nbsp; ''Showing'' that result isn't very common, but ''using'' a string starting with the 2<sup>nd</sup> is. -- [[User:Gerard Schildberger|Gerard Schildberger]] 18:52, 14 March 2013 (UTC)
 
 
==special cases==
 
I am wondering how many languages allow a zero length &nbsp; '''SUBSTR''' &nbsp; (or equivalent BIF).