January 16
On Thursday, 16 January 2025 at 22:21:54 UTC, Richard (Rikki) Andrew Cattermole wrote:
>
>  So far you have proposed new delimiters but not new behaviors (which would be required to add it).

Directional quotes are new... simpler behavior
January 17

On Thursday, 16 January 2025 at 21:19:34 UTC, barbosso wrote:

>

They are in the ASCII table.
They are directional and balanced.
The D language should use them.

Just look:

writeln(«Hello, World!»);

The obvious follow-on question is, if we allow chevrons, should we also allow strings to be enclosed in:

  • “Non-ASCII double quotes”?
  • 「Chinese corner brackets」?
  • 《Tibetan angle brackets》?

If not, why not?

January 20

On Thursday, 16 January 2025 at 22:21:54 UTC, Richard (Rikki) Andrew Cattermole wrote:

>

However the current stance is that we have possibly too many string types. So far you have proposed new delimiters but not new behaviors (which would be required to add it).

I’m personally quite happy with the choice of strings, especially the token delimited strings, token strings, and so on. I do wish token strings were more conducive to concatenation because they usually still have syntax highlighting, making them work well with rudimentary mixins, but if you need to use { then you can’t easily cut them off to }~insert~q{ other text. Thankfully IES partially solves this, but it’s maybe a little overkill for most of my use-cases (fast code generation), so I’ll just put up with having my code be all one colour.

February 12

On Thursday, 16 January 2025 at 21:19:34 UTC, barbosso wrote:

>

They are in the ASCII table.
They are directional and balanced.
The D language should use them.

Just look:

writeln(«Hello, World!»);

What would this enable/make better that isn't currently possible?

February 12
D has shied away from using grammar syntax based on characters that:

1. are not ASCII

2. are not on a standard keyboard

We also do not use things like “quotes” in syntax. They are accepted in string literals, however.

D does support named character entities:

https://dlang.org/spec/entity.html

in string literals.

Any and all Unicode code points are supported in comments and string literals. Some are supported in identifiers, but I'm not convinced that is a good idea.
1 2
Next ›   Last »