[GHC] #14473: Implement Underscores in Numeric Literals Proposal (NumericUnderscores extension)
GHC
ghc-devs at haskell.org
Thu Nov 16 12:58:38 UTC 2017
#14473: Implement Underscores in Numeric Literals Proposal (NumericUnderscores
extension)
-------------------------------------+-------------------------------------
Reporter: takenobu | Owner: (none)
Type: task | Status: new
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.2.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets: #13126 #9224
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Implement Underscores in Numeric Literals Proposal.
GHC supports various numeric literals such as decimal, octal, hexadecimal,
binary, and floating point numbers. However, large numeric literals are
hard to read. This proposal improves the readability, quality,
expressiveness of numeric literals.
This proposal allows underscores to numeric literals when the
`NumericUnderscores` language extension is enabled.
Underscores (`_`) in numeric literals are simply ignored.
The specification of the feature is available here:\\
https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0009
-numeric-underscores.rst
For a discussion:\\
https://github.com/ghc-proposals/ghc-proposals/pull/76
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14473>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list