3 ms·
It's sad to see that even with a rewrite (Servo), the code becomes so hairy. In my ideal world, browsers are spec'd in a functional language, and optimized mec
by amelius 8y ago
It's sad to see that even with a rewrite (Servo), the code becomes so hairy.
In my ideal world, browsers are spec'd in a functional language, and optimized mechanically (perhaps based on ad-hoc human guidelines).
- smaddox 8y agoThat's hairy? It looks pretty clean to me. Sure, there are a lot of match cases, but they follow a fairly clean and clear pattern. Pulling them out into a hundred single-use functions certainly wouldn't make it easier to understand.