proposal: a new string litteral to embed variables in a string

Jacob Carlborg doob at me.com
Wed Nov 6 02:43:21 PST 2013


On 2013-11-05 23:26, Timothee Cour wrote:
> actually an important use case of this feature is to help writing domain
> specific language inputs, eg writing a python file inside D, or config /
> plain text files.
> # is common in many languages (eg python/bash etc) as a comment.
>
> @ would be inside string literal so should cause little confusion from
> D's side, but for example would force one to escape '@' in email
> addresses (more rare).

If we're talking about writing other languages inside D, then "@" would 
be in conflict with Objective-C which uses that for all new syntax (that 
isn't available in plain C).

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list