Display of character stirng results
Posted: Wed Aug 13, 2008 3:17 pm
This is just an idle observation and should not be treated with any degree of urgency at all. If there's a prioritised list of planned enhancements, please put it at the bottom if you plan to accept it at all.
There's a curious difference in treatment of tuple{x 'abc'} and just 'abc'. The result display for the tuple expression shows quotes (actually double ones) around the string but the result display for the string expression doesn't. Moreover, toggling the Enhanced switch has no effect.
The original (unenhanced) method of display was intended to give one a Tutorial D literal denoting the value in question--an excellent idea which proved popular. Why wasn't that principle applied for character strings too?
Also, what about the idea, now, of adding the quotes only when Enhanced is off, for strings in tuples and relations as well as standalone strings?
Hugh
There's a curious difference in treatment of tuple{x 'abc'} and just 'abc'. The result display for the tuple expression shows quotes (actually double ones) around the string but the result display for the string expression doesn't. Moreover, toggling the Enhanced switch has no effect.
The original (unenhanced) method of display was intended to give one a Tutorial D literal denoting the value in question--an excellent idea which proved popular. Why wasn't that principle applied for character strings too?
Also, what about the idea, now, of adding the quotes only when Enhanced is off, for strings in tuples and relations as well as standalone strings?
Hugh