google / starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go
BSD 3-Clause "New" or "Revised" License
2.34k stars 212 forks source link

starlark: make repr(float(1)) be "1.0", not "1" #166

Closed josharian closed 3 years ago

josharian commented 5 years ago

Fixes #130

josharian commented 5 years ago

130 still needs a decision. This was easy enough to implement, so I'm sending it in case seeing the implementation helps with making a decision.

alandonovan commented 3 years ago

This was fixed by 3b7e02e, and incorporated into the Starlark spec.