Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: