[ghc-steering-committee] #344: Negative Literals Improved, rec: accept
Joachim Breitner
mail at joachim-breitner.de
Wed Jul 15 07:58:14 UTC 2020
Dear Committee,
a refinement to the NegativeLiterals extension has been proposed by
Vladislav Zavialov (int-index).
https://github.com/ghc-proposals/ghc-proposals/pull/344
https://github.com/int-index/ghc-proposals/blob/negative-literals-improved/proposals/0000-negative-literals-improved.md
He noticed that
x-1
parses as
x (-1)
which is probably not what people expect. With this change it would be
parsed as
x - 1
by requiring that a negative literal may not be preceded by a “closing
toking”.
Nice side effect: This makes NegativeLiterals a subset of
LexicalNegation (according to the author).
The proposal has been received positively by the crowd on Github.
I suggest we accept that proposal.
Cheers,
Joachim
--
Joachim Breitner
mail at joachim-breitner.de
http://www.joachim-breitner.de/
More information about the ghc-steering-committee
mailing list