Talk:Sort the letters of string in alphabetical order: Difference between revisions

Line 88:
::: Indeed "natural to the language" and the most typical meaning for "natural" represent very different concepts (and rely on different "natural language" definitions of the adjective).
::: But perhaps you could suggest a better phrasing which you think would serve here? --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 07:53, 13 August 2022 (UTC)
 
:::: The task says "A character for this purpose should be whatever is natural for your language" - surely, this means the programming language, not the programmer's natural language. The collating sequence is thus defined by the character set being used - ASCII, Unicode, EBCDIC or whatever. Most languages have a character/byte/rune/whatever type and so the task author is saying use whatever's best for the language.
:::: Perhaps the wording could be changed to "A character for this purpose should be whatever is natural for your programming language".
:::: Mandating the collating sequence would disadvantage languages where the specified sequence wasn't the one "natural" to the programming language and surely over-complicate the code. The task is a simple sorting application, requiring demonstration of how to get at the individual characters of a string.--[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 08:59, 13 August 2022 (UTC)
3,021

edits