You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
repr
(and runnableExamples rendering etc) would preserve original source code formatting (refs runnableExamples should preserve source code doc comments, strings, and (maybe) formatting nim-lang/Nim#8871); it'd also make it easier fornimpretty
andnim doc
alternatives considered
tkBigNum
proposed here https://irclogs.nim-lang.org/02-04-2020.html#12:45:32 is less useful, doesn't help with other things, eg keeping source code representation, or floating point litteralslinks
D20200425T180920
info
more discussion
(around https://irclogs.nim-lang.org/02-04-2020.html#12:31:25)
open questions
EDIT
migrated to nim-lang/compilerdev#7
The text was updated successfully, but these errors were encountered: