Jump to content

Rosetta Code talk:TODO: Difference between revisions

→‎String Length: be careful with those assumptions!
(New section: "Less than" categories)
(→‎String Length: be careful with those assumptions!)
Line 3:
String Byte Length and String Character Length were split because many examples in String Length didn't differentiate between 8-bit characters and wide characters, which is an important distinction for low-level languages on modern systems. If they get merged, this distinction needs to be preserved. --[[User:Short Circuit|Short Circuit]] 13:20, 2 December 2007 (MST)
:Agreed. Currently, many of the string tasks have the same code between the two pages, so you can't tell which one is correct for each page. Once merged, there won't be duplication, and we can tag the language with only one string operation with the "incorrect" template. --[[User:IanOsgood|IanOsgood]] 09:08, 3 December 2007 (MST)
::That might not help; the distinction between a "string of bytes" and a "string of characters" might be hidden. For example, [[Tcl]] does not expose its actual low-level string interpretation scheme to the script level because its internally polymorphic according to what is the most efficient way to handle the operations being applied to the string. To get the real "byte length" of a string, you first have to state what encoding you want the string in… —[[User:Dkf|Donal Fellows]] 13:17, 13 June 2009 (UTC)
 
== HOPL ==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.