Re:China’s first ‘fully homegrown’ web browser found to be G...
by smaddox on Thursday August 16, 2018 @02:40PM
(#17777417)
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.
In my ideal world, browsers are spec'd in a functional language, and optimized mechanically (perhaps based on ad-hoc human guidelines).