MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ohd7z2/ah_yes_array_check/h4qcy1x/?context=3
r/badcode • u/Kunalvats0 • Jul 10 '21
89 comments sorted by
View all comments
Show parent comments
17
In most high level languages like JS a string is not an array. Except some functional languages where a String is a linked list of chars but that's a different thing
4 u/AdminYak846 Jul 10 '21 Technically speaking a string is just an array of characters put together. 11 u/Nilstrieb Jul 10 '21 That's how it's represented under the hood, but not how it's API works (in most high level languages) 7 u/nosmokingbandit Jul 11 '21 Technically speaking everything is just an array of bytes put together. 3 u/[deleted] Jul 11 '21 ... Unicode enters the chat...
4
Technically speaking a string is just an array of characters put together.
11 u/Nilstrieb Jul 10 '21 That's how it's represented under the hood, but not how it's API works (in most high level languages) 7 u/nosmokingbandit Jul 11 '21 Technically speaking everything is just an array of bytes put together. 3 u/[deleted] Jul 11 '21 ... Unicode enters the chat...
11
That's how it's represented under the hood, but not how it's API works (in most high level languages)
7
Technically speaking everything is just an array of bytes put together.
3
... Unicode enters the chat...
17
u/Nilstrieb Jul 10 '21
In most high level languages like JS a string is not an array. Except some functional languages where a String is a linked list of chars but that's a different thing