6 ms·
Reminds me of this post https://maxgreenwald.me/blog/do-more-with-run https://maxgreenwald.me/blog/do-more-with-run I now reach for this a lot to allow me to w
by domlebo70 1y ago
Reminds me of this post https://maxgreenwald.me/blog/do-more-with-run https://maxgreenwald.me/blog/do-more-with-run
I now reach for this a lot to allow me to write expression oriented programs in JS
- williamdclt 1y agoYeah I remember reading this post, thinking "whatever" about it, and then finding myself implementing and using it regularly-ish. Usually I use it to encapsulate a complicated initialisation of a variable, where some mutation is needed/easier. I still want colocation for readability, but I dont want intermediate variables in the scope or to declare the variable as mutable