r2d4 / virgo

Graph-based Declarative Configuration Language
MIT License
134 stars 7 forks source link

Vertex statement: Many languages use "`" as syntax #1

Open CrazyPython opened 3 years ago

CrazyPython commented 3 years ago

Many languages, such as Bash and JS, use "`" as valid syntax.

Furthermore, while implementing the spec, I noticed it doesn't say escaping "`" is required.

I propose changing the character to "@", a character very rarely used in programming languages.

Alternatively, we could use:

r2d4 commented 3 years ago

To be fair - my reference was Go's string literal syntax.

I'm a little hesitant to use here strings/end tokens because it requires a good amount of work for each label. Indentation doesn't seem like a bad idea, but I'm a little burned from writing long configuration in YAML.

Let me think about this a bit, and I'm happy to listen to what others think.

CrazyPython commented 3 years ago

My proposal:

task = @echo hi@