Remix.run Logo
winocm 3 days ago

I learned of a cute side effect when one puts the function name on its own line, like above.

In BSD of yore and modern contemporaries, one could often perform `grep '^function'` and end up finding the source file quite easily. I think it also makes using ctags(1) a bit easier too, but not entirely sure on that bit.

Iwan-Zotow 3 days ago | parent [-]

you could grep `grep '^auto function'` with the same efforts

3836293648 2 days ago | parent [-]

No, that clashes with variable declarations. Sure, you could have a naming scheme that doesn't have that issue, but that doesn't help with library code.