1.

Why Not Support Regular Expression Literals With The /foo/g Syntax?

Answer»

There are two reasons:

  1. The /foo/g syntax would make it impossible to SEPARATE the LEXER from the parser, as / is the divide token.
  2. There are already 3 string types; adding the regex literals would add 3 more. This would proliferate through MUCH of the compiler, debugger info, and LIBRARY, and is not worth it.

There are two reasons:



Discussion

No Comment Found