Content deleted Content added
→Only finite strings?: new section |
|||
Line 74:
== StringBuilder .Net type ==
As well as the standard String type, .Net has a StringBuilder type. I think this is implemented as a linked list, but I'm not too sure. This would be worth adding to the Implementation section. [[User:N4m3|N4m3]] ([[User talk:N4m3|talk]]) 09:35, 28 May 2011 (UTC)
== Only finite strings? ==
I noticed this statement:
: ''Although formal strings can have an arbitrary (but '''finite''') length, the length of strings in real languages is often constrained to an artificial maximum.'' [emphasis mine]
I would like a citation on that, what about languages with lazy evaluation like Clojure and Haskell?
<source lang="haskell">
cycle "Is this finite? "
⇒ "Is this finite? Is this finite? Is this finite? Is this finite? ..."
let shouting = 'a' : shouting in putStr shouting
⇒ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..."
</source>
—[[User:BiT|BiT]] ([[User talk:BiT|talk]]) 03:00, 8 December 2011 (UTC)
|