Not sure if this is truly a bug or just a way strings work, but you cannot add in-line comments to plural typed strings in the same way you can with other data types.
Easy to work around, but it makes me sad when I cannot add comments to make things pretty.
This code:
Yields this result:
Easy to work around, but it makes me sad when I cannot add comments to make things pretty.
This code:
PHP:
foreach it in $items[
seal tooth,
helmet turtle, //this is a comment
turtle totem, //and another one
saucepan,
] { print(it); }
print("-");
foreach ss in $strings[
seal tooth,
helmet turtle, //this is a comment
turtle totem, //and another one
saucepan,
] { print(ss); }
Yields this result:
Code:
seal tooth
helmet turtle
turtle totem
saucepan
-
seal tooth
helmet turtle
//this is a commentturtle totem
//and another onesaucepan