Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
taping-memory
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
Wait Don't spawn that task – Comparing patterns for concurrent applications
(taping-memory.dev)
1 points
by
taping-memory
1y ago
|
0 comments
2.
▲
by
taping-memory
1y ago
> Using repr(C) makes it 4 bytes. That makes sense, they just don't use repr(C) for the PrintResult so I didn't consider that. > But then again, modeling a C enum to a Rust enum is bad design. You want to use const in Rust a
3.
▲
by
taping-memory
1y ago
I'm reading the article and so far it's great. I'm just wondering in the explanation of listing 2 you say: > a discriminant value indicating the enum’s active variant (4 bytes) As far as I can find, there's no guarant