I'd argue the StmtList for the inline body is the bug, Nim's AST was designed 
to be losslessly convertible into its text representation (hello, "nimfmt" 
tool)...

> And that way, I may overlook things like „if a variable declaration is on the 
> same line as the of branch, no wrapping RecList is produced“.

Sure, but that's just the nature of the AST, think about `nnkCallKinds`. And 
usually there are no parts in the AST that are "always" there to always ignore, 
so if your code unconditionally assumes a RecList, it's suspicious to begin 
with.

Reply via email to