3 ms·
Just read your blog post[0], thanks for it! If I may leave some feedback here... It'd be cool if you could add some syntax highlighting, because being at it i
by whilenot-dev 2mo ago
Just read your blog post[0], thanks for it!
If I may leave some feedback here...
It'd be cool if you could add some syntax highlighting, because being at it is, it's hard to distinguish comments from code paths. The code snippets are just Scala anyway, aren't they?
Why, in the switch dispatch- and the subroutine threading-variants, is the recursive call in the dispatch function done with a call to loop(...)? Is that some Scala specific thing for recursion?
[0]: https://noelwelsh.com/posts/understanding-vm-dispatch/ https://noelwelsh.com/posts/understanding-vm-dispatch/
- noelwelsh 2mo agoThanks for pointing those out. I've fixed both issues. Syntax highlighting was a discrepancy between my local env and the Netlify env that deploys the site. `loop` is what I usually call tail-recursive loops in my personal style. I think I changed that to `dispatch` for the blog post and didn't push the change all the way through.