[Info-vax] A DCL wish list of sorts...
Arne Vajhøj
arne at vajhoej.dk
Sat Mar 23 14:14:46 EDT 2019
On 3/18/2019 9:21 AM, Simon Clubley wrote:
> On 2019-03-17, John Reagan <xyzzy1959 at gmail.com> wrote:
>> On Sunday, March 17, 2019 at 11:49:41 AM UTC-4, Howard Taylor wrote:
>>> Something I would love to see is the ability to easily use quotes (both single and double) in strings. Such a pity the single quote was selected for symbol substition.
>>
>> Define "easily"
>>
>> $ write sys$output "Print a double quote "" followed by a single quote ''''"
>> Print a double quote " followed by a single quote '
>
> Using an escape character is more readable IMHO. That would allow you
> to write your example as something like this:
>
> $ write sys$output "Print a double quote \" followed by a single quote \'"
There are two traditional ways to handle quotes in quotes:
* escaping
* doubling
Some languages use the first, some use the second and some use both.
I do not see DCL using doubling of double quotes as anything unusual.
The single quotes handling is unusual.
Arne
More information about the Info-vax
mailing list