Hacker News new | ask | show | jobs
by dcre 458 days ago
In the embedded video they show some of the code side by side and it is just a ton of if statements.

https://youtu.be/pNlq-EVld70?si=UaFDVwhwyQZqkZrW&t=323

1 comments

to be fair, there's not many ways to implement a token matcher.

though looking at that flood of loose ifs+returns, i kinda wish they used rust :)

I’d guess Rust compile times weren’t worth it if they weren’t going to be taking advantage of the type system in interesting ways.