Talk:Reverse a string: Difference between revisions

→‎Extra Credit: new section
(→‎Extra Credit: new section)
 
Line 53:
 
:Have you considered [http://unicode.org/reports/tr9/ directionality]? --[[User:Rdm|Rdm]] 04:13, 31 January 2011 (UTC)
 
== Extra Credit ==
 
The extra credit task seems artificial.
 
Specifically, it's using unicode, and I can see that demonstrating unicode handling in string reversal could be a good thing.
 
However, a close look at the characters involved in the extra credit task shows that two of the character codes in the "reversed string" are ''required to be '''not reversed''''' from the order in which they appear in the original string. And while that could indeed be an interesting task, I do not think that it belongs in the "Reverse a string" task.
 
The task that would be appropriate to this example might perhaps be better labeled "manipulate a string while retaining structures implied by the use of some contained unicode characters" though perhaps a shorter name is possible.
 
--[[User:Rdm|Rdm]] 14:50, 22 April 2011 (UTC)
6,951

edits