reading an EPIC summary of some @rustlang syntax discussion about my favorite--the turbofish! as much as i love me some ergonomics, allowing unbounded syntax lookahead to parse rust makes me realllllllly sadhttps://github.com/rust-lang/rfcs/pull/2544#issuecomment-453653184 …
-
-
If you’re parsing Rust for any practical purpose, the complexity class of the grammar isn’t in the top 10 things that are difficult. It isn’t even in the top 100.
-
The things that make parsing languages difficult are things like C’s lexer hack, or the way C++’s template expansion affects parsing. Not theoretical complexity class of the grammar.
- 10 more replies
New conversation -
-
-
tell me more
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It doesn't matter practically for something doing a complete parse of the language; it does matter for partial parses and sub-parse algorithms like error recovery and structural chunking in editors; and it matters more in the sense that a limit helps you control costs.
-
I don’t see how this affects error recovery at all. You just backtrack.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.