-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functional vs. object-oriented string handling #334
Comments
What would go into the category something else? (that is apart from a new standardized intrinsic string type) Personally, I am happy with the functional (non-extendible) string type. Looking at the list of auxiliary methods in StringiFor, I think all of them can be implemented just as easily as functions (and not type-bound methods). That said, one benefit of the object-oriented string class is that it suffices to import only the type in order to use the type-bound methods. I would add that in C++ it is generally frowned upon to inherit from |
FWIW for a "string type" to supplant the intrinsic |
To explore the capabilities of string handling I have implemented two kinds of strings to far.
string_type
(see Implement non-fancy functional string type #320), similar toiso_varying_string
string_class
(see Enable discussions for stdlib? #330)Currently both implementation provide only the bare minimum functionality of the intrinsic deferred length character variables.
There are two type of questions to answer here:
Related to #330 implementing an abstract base class for string objects.
For prior discussions of strings see #69.
The text was updated successfully, but these errors were encountered: