Hacker News new | ask | show | jobs
by amelius 2869 days 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).

1 comments

That'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.