4 ms·
The only weird thing to me is this: > # There are 46,908 different valid characters that you can use in an identifier And yet among all those characters I can
by Jach 16y ago
The only weird thing to me is this:
> # There are 46,908 different valid characters that you can use in an identifier
And yet among all those characters I can't have a question mark at the end of a boolean variable or function name...
Anyway, weirdness is no excuse for not supporting a feature in a parser!
- kleiba 16y agoThat must be because of the ternary operator: condition ? result-if-true : result-if-false although you're probably right that a smarter parser should be able to distinguish between both cases. But then the next guy comes along and complains that he can't use a colon as a valid character in his variable names...
- jere_jones 16y agoBear in mind that this parser's job is only for syntax highlighting and, later on, refactoring. Hmmm... maybe highlighting literals would be useful. I'll have to think on that.