logoalt Hacker News

vbezhenar01/21/20251 replyview on HN

I disagree that it's a good approach. I think that parameters must be passed down always, as parameters. It allows compiler to detect unused parameters and it removes all implicitness.

It is verbose indeed and may be there should be programming language support to reduce that verbosity. Some languages support implicit parameters which proved to be problematic but may be there should be more iterations on that manner.

I consider context for passing down values to do more harm than good.


Replies

cle01/21/2025

It's nothing to do with verbosity, which is why I didn't mention it.