Open dtolnay opened 3 months ago
As of https://github.com/dtolnay/syn/pull/1659, we are currently using code like token::Paren::default().surround(tokens, |tokens| e.to_tokens(tokens)) .
token::Paren::default().surround(tokens, |tokens| e.to_tokens(tokens))
But maybe a better behavior would be token::Group::default().surround(...).
token::Group::default().surround(...)
I think using parens still is better because you may want to dump the tokens to a file, which breaks with invisible delimiters afaik
As of https://github.com/dtolnay/syn/pull/1659, we are currently using code like
token::Paren::default().surround(tokens, |tokens| e.to_tokens(tokens))
.But maybe a better behavior would be
token::Group::default().surround(...)
.