Join Nostr
2026-08-14 23:36:52 UTC
in reply to

solo on Nostr: I just used that as an example my point is, why the hell do they use const instead of ...

I just used that as an example

my point is, why the hell do they use const instead of function

and yes, although they work, why? it makes it non-obvious the purpose of something by glancing at it. the function keyword makes it easier to skim code and identify "yes, this is a function", that is why we added keywords to languages