Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
7h3kk1d
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
7h3kk1d
1y ago
Never in TypeScript is the equivalent of "bottom" where a value can never appear. The type holes in hazel are for incomplete types (during development) and work more like the any type in typescript where they are consistent with e
2.
▲
by
7h3kk1d
1y ago
I don't think you do. The --in param on svg-term-cli worked for me locally.
3.
▲
by
7h3kk1d
1y ago
I'm quite sure my grandma could not. You can make the argument these people aren't intelligent but I think that's a contrived argument.
4.
▲
by
7h3kk1d
1y ago
There's sentient humans who can't beat the first generation pokemon games.
5.
▲
by
7h3kk1d
2y ago
I agree with regards to checked exceptions. Unfortunately Java doesn't support any form of polymorphism over thrown exceptions so it makes your code much harder to reuse. In languages that support polymorphic effects I imagine this is
6.
▲
by
7h3kk1d
2y ago
""Make illegal states unrepresentable" is way too expensive to implement." This has not been my experience. The speed increase in development not having to worry about the unrepresentable cases have been very valuable. I
7.
▲
by
7h3kk1d
2y ago
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.
8.
▲
by
7h3kk1d
2y ago
If you put the cursor on it you'll see an error message at the bottom. In this case the case expression is inexhaustive because it's only handling lists of size 0, 1, and 2.
9.
▲
by
7h3kk1d
2y ago
You can play with it at https://hazel.org/build/dev/ but programs don't "crash" when they're incomplete so "1 + 5 + ?" will evaluate to "6 + ?" in the editor. So your progra
10.
▲
by
7h3kk1d
2y ago
Hazel will also run incomplete programs around holes. Most untyped languages will just crash as soon as something is incomplete.
11.
▲
by
7h3kk1d
5y ago
I think the above commenter is more critiquing the notion of relying on intuition all together.
12.
▲
by
7h3kk1d
7y ago
Do they have consumer app versions?
13.
▲
by
7h3kk1d
7y ago
Most are, but I have definitely worked on projects that weren't
14.
▲
by
7h3kk1d
8y ago
Possibly add a merge trees feature?
15.
▲
by
7h3kk1d
9y ago
I'd rather find a better long term fit quicker than have a pleasant process when looking.
16.
▲
by
7h3kk1d
11y ago
I think the point is to consciously acknowledge what you're doing needs a side effect. It's similar with mutable state. Both state and side effects are completely necessary but should be isolated and controlled through known const