Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jshxr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
jshxr
1y ago
Unfortunately, this can be somewhat awkward to implement in certain structural typed languages like TypeScript. I often find myself writing something along the lines of type UserID = string & { readonly __tag: unique symbol } whi
2.
▲
by
jshxr
1y ago
I've seen it being referred to as "New Type Pattern" or "New Type Idiom" in quite some places. For example in the rust-by-example book [1]. [1] https://doc.rust-lang.org/rust-by-example/generics
3.
▲
by
jshxr
1y ago
Very cool! A few notes: - I really like the level of fine-grained control, even for changes that don't visibly affect the output, like reversing a path. For that case, some visual feedback would help, since it's hard to tell if it
4.
▲
Ask HN: Why is the source folder called 'src'?
7 points
by
jshxr
5y ago
|
15 comments