Closed leonidborisenko closed 9 years ago
I agree that !
as a first character doesn't work. However, I like the idea of having ?
as a prefix too. For example if you were to create nilable predicates then you could name it ?String
which would assert that it's either nil
or a string. This is different to the "questioning" style in which it is used in the postfix position.
So I guess I should tighten up the parser for !
as prefix.
Done.
Thanks. Also README.md now contains outdated information about valid identifiers.
!
and?
in identifiers are very useful for Ruby-style accessors/methods naming:empty?
,sort!
. But, maybe, starting!
and?
should be forbidden in identifiers?