Arc Forumnew | comments | leaders | submitlogin
2 points by almkglor 4532 days ago | link | parent

Strings as lists (from PG):

> They were once but it turned out I never used this fact. The things you want to strings turn out to be different.

I don't quite understand what he was saying, I replied a follow-up on it asking him to clarify but he hasn't replied to it ^^. My assumption is it means "the things you want string to be" turn out to be different.

1 point by cronin1024 4531 days ago | link

If a string was a linked list, the storage and processing overhead would be considerable compared to an array-based implementation with no tangible benefit - how often do you really perform a recursive process on a string or create a new string with the tail of an old string?


2 points by almkglor 4531 days ago | link

cref treeparse.