Given the changes that were made to the GML parser, I would like to know what is your opinion on YYG allowing the use of something similar to what we can see in JS and C#.
JS:
C#:
right now this translates to GML as:
It would be nice to allow for such string construction on GML, what do you think?
Here are the PROS
1) String declaration would be more compact.
2) String are less likely to have format errors (sometimes spaces as easy to forget when writing the GML way).
3) A lot of languages already provide them JS, C#, Python.
4) Wouldn't have an impact on the game performance as they can be replaced during compile time.
I know better exports and other features related to other parts of the IDE would be better appreciated but since they are already touching in the GML parser to allow for function + structs .... this would probably be a minor simple thing to add.
JS:
JavaScript:
var a = "foo";
var b = "bar";
var c = "damn";
var text = `Today I want ${a} with a ${b} and it was ${c} great`;
C#:
var a = "foo";
var b = "bar";
var c = "damn";
var text = $"Today I went {a} with a {b} and it was {c} great!";
GML:
var a = "foo";
var b = "bar";
var c = "damn";
var text = "Today I went " + a + " with a " + b + "and it was " + c + " great!";
Here are the PROS
1) String declaration would be more compact.
2) String are less likely to have format errors (sometimes spaces as easy to forget when writing the GML way).
3) A lot of languages already provide them JS, C#, Python.
4) Wouldn't have an impact on the game performance as they can be replaced during compile time.
I know better exports and other features related to other parts of the IDE would be better appreciated but since they are already touching in the GML parser to allow for function + structs .... this would probably be a minor simple thing to add.