nim-lang / compilerdev

This repository contains a collection of documents about how to change/refactor the Nim compiler in order to make it faster, easier to maintain and have fewer bugs by a superior architecture and design. However, no every idea here will work out.
10 stars 3 forks source link

RFC: represent all litterals as string #7

Open timotheecour opened 4 years ago

timotheecour commented 4 years ago

literals-as-strings

this was discussed in forum recently (EDIT: not sure how to find it D20200425T182934; EDIT: https://irclogs.nim-lang.org/02-04-2020.html#12:45:32); the idea is to make the parser emit litterals (eg 123, 123'u8, 23.4, -34 etc) as strings instead of doing the parsing there; and the parsing would be deferred to semcheck phase

benefits

alternatives considered

links

D20200425T180920

info

more discussion

(around https://irclogs.nim-lang.org/02-04-2020.html#12:31:25)

open questions

timotheecour commented 4 years ago

had some new ideas after looking at https://forum.nim-lang.org/t/6310#38884, moving discussion to https://github.com/nim-lang/RFCs/issues/228