CS 3304: Comparative Languages
Data Types
[
Course Documents
] : [
Data Types
]
Previous
Contents
Next
Keyword Index
Evaluation of String Types
Supporting strings is an aid to readability and writability
As a primitive type with fixed length, they are inexpensive to provide--why not have them?
Dynamic length is nice, but is it worth the expense?
Implementation:
Static length--compile-time descriptor
Limited dynamic length--may need a run-time descriptor for length (but not in C and C++)
Dynamic length--need run-time descriptor; allocation/deallocation is the biggest implementation problem