<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go-x-proposal/design/19308-number-literals.md, branch main</title>
<subtitle>Fork of golang.org/x/proposal with my patches.</subtitle>
<id>http://git.kilabit.info/go-x-proposal/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go-x-proposal/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-proposal/'/>
<updated>2026-04-09T15:18:08Z</updated>
<entry>
<title>all: fix broken links and typos</title>
<updated>2026-04-09T15:18:08Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2026-02-04T19:40:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-proposal/commit/?id=a35c1bec998f69ab8feaba5bc18c475b460473c3'/>
<id>urn:sha1:a35c1bec998f69ab8feaba5bc18c475b460473c3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>design/19308-number-literals.md: document 'i' suffix on any number literal</title>
<updated>2019-03-06T19:39:45Z</updated>
<author>
<name>Robert Griesemer</name>
<email>gri@golang.org</email>
</author>
<published>2019-02-26T23:11:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-proposal/commit/?id=d7363b9f30b6f4cb3a9b07b52939996bba296b3a'/>
<id>urn:sha1:d7363b9f30b6f4cb3a9b07b52939996bba296b3a</id>
<content type='text'>
Document that the imaginary suffix 'i' may now be used on any (non-imaginary)
number literal, while maintaining backward compatibility.

While at it, consolidate the syntax around for int_lit and float_lit
to match the respective spec changes in https://golang.org/cl161098,
and clean up order of examples.

Change-Id: Ia6f2e3c5c0b7bcb70f81042ed20b2b18ecb81e6e
Reviewed-on: https://go-review.googlesource.com/c/proposal/+/163857
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
<entry>
<title>design/19308-number-literals: add note about gofmt</title>
<updated>2019-01-30T20:29:49Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2019-01-30T17:58:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-proposal/commit/?id=bbfed3d81a0fdaf5f4865555552d13274dd531cf'/>
<id>urn:sha1:bbfed3d81a0fdaf5f4865555552d13274dd531cf</id>
<content type='text'>
Add note about lowercasing base prefixes and exponents in gofmt.
See also golang.org/cl/160184.

For golang/go#19308.
For golang/go#12711.
For golang/go#29008.

Change-Id: I79f813badc0b28147fba40072d9c7436bfa91aaa
Reviewed-on: https://go-review.googlesource.com/c/160478
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Brad Fitzpatrick &lt;bradfitz@golang.org&gt;
Reviewed-by: Robert Griesemer &lt;gri@golang.org&gt;
</content>
</entry>
<entry>
<title>design/19308-number-literals: adjust hex_float_lit and imaginary_lit syntax</title>
<updated>2019-01-24T00:21:08Z</updated>
<author>
<name>Robert Griesemer</name>
<email>gri@golang.org</email>
</author>
<published>2019-01-22T20:51:14Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-proposal/commit/?id=08cad03f29f2b2b9a6fc237fbb8cee38247734be'/>
<id>urn:sha1:08cad03f29f2b2b9a6fc237fbb8cee38247734be</id>
<content type='text'>
We permit a _ separator after the hex prefix in a hexadecimal
integer, as in 0x_1234; for consistency we also allow the
separator in a hexadecimal float, as in 0x_1234.0p0.

Also, to limit imaginary literals to decimal representations
as is the case now, change the repespective syntax to refer
to decimal_float_lit rather than float_lit (which now also
permits hexadecimal float representations).

Change-Id: I03d95dffe3d583dad862b4f75e998aa0772f39a2
Reviewed-on: https://go-review.googlesource.com/c/158862
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
<entry>
<title>design/19308-number-literals: fix bad link</title>
<updated>2019-01-17T15:17:26Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2019-01-17T15:17:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-proposal/commit/?id=d50b6fcce09ea3eec1dc90bd7f340e8e36e055f8'/>
<id>urn:sha1:d50b6fcce09ea3eec1dc90bd7f340e8e36e055f8</id>
<content type='text'>
Change-Id: I9e453857f3e73fd234c9406a89e0a34d0bb669dc
Reviewed-on: https://go-review.googlesource.com/c/158241
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
<entry>
<title>design/19308-number-literals: add self-link</title>
<updated>2019-01-17T15:16:00Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2019-01-17T15:15:42Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-proposal/commit/?id=a1d46078a10e189b13f4a27ab7b67fbb19e7c13e'/>
<id>urn:sha1:a1d46078a10e189b13f4a27ab7b67fbb19e7c13e</id>
<content type='text'>
Change-Id: Ib56c8b7aacf2b5c22c63fe6a654f1cf68871e8d7
Reviewed-on: https://go-review.googlesource.com/c/158240
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
<entry>
<title>design: add 19308-number-literals</title>
<updated>2019-01-17T14:43:20Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2019-01-17T14:17:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-proposal/commit/?id=5e1d1c60d74f76a9f75bda9c0bd07dc56f5ce769'/>
<id>urn:sha1:5e1d1c60d74f76a9f75bda9c0bd07dc56f5ce769</id>
<content type='text'>
Change-Id: I777585cbb1abc6fa451fa62865fb0be3d958a43f
Reviewed-on: https://go-review.googlesource.com/c/158239
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
</feed>
