you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 month ago (4 children)

Technically $foo also delimits at both ends, the second character is just a newline or whitespace character. However with %foo% it is unambiguous where the variable begins and ends.

Also I said newline or whitespace, what about special characters?

Look at $foo+$bar am I adding two variables together? Is the first variable $foo or $foo+?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 month ago (3 children)

    i'm yet to see any language that has variables and '+' operator, while accepting also '+' in variable names at the same time. Same goes for basically every operator

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 month ago (2 children)

    Didn't JS do it? Or was it Lua? I don'5 remember but i am sure i saw a language that did some shit like that...

  • source
  • parent
  • hideshow 2 child comments