News for hackers. Stuff that matters.
Re:Hazel: A live functional programming environment featurin... by jlkuester7 on Friday November 01, 2024 @08:38AM (#42016366)
Not sure if I have just spent too much time in the JS/TS world and so I have forgotten the pain in this area in proper compiled languages, but to me it seems like needing "typed holes" smells like maybe there is some abstraction missing in your codebase.

I prefer to have code layered in a way that my inflection points happen across well defined interfaces. Then I can make changes one layer at a time in increments that are small enough to still be able to reason about. But maybe I am totally mising the point of typed holes!

Re:Hazel: A live functional programming environment featurin... by 7h3kk1d on Friday November 01, 2024 @10:28AM (#42017232)
I'm not sure I understand your point. Typed holes aren't trying to get rid of the concept of interfaces or well designed abstractions. Rather they aim to help deal with incomplete programs that are still under development.
Re:Hazel: A live functional programming environment featurin... by mrkeen on Friday November 01, 2024 @10:57AM (#42017532)
> maybe there is some abstraction missing

A hole is the answer to this question. You ask the compiler "what abstraction is missing?" and it tells you.