Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
YatoRust
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
YatoRust
7y ago
You can lay out your types exactly how you want in Rust, just by using the `#[repr(C)]` or `#[repr(packed)]` attributes to guarantee an ordering of the fields. So, > rust might not give you great insight into how it lays things out Is no
2.
▲
by
YatoRust
7y ago
Yes, I think he meant that it would be a bad idea to lock all of the type parameters to the same type, because all closures have different types. So you wouldn't be able to do something like this compose(|x| x, |x| x) because