Content pfp
Content
@
0 reply
0 recast
2 reactions

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
My biggest issue with Rust (given that I've barely used it) is how it looks. This looks like somehow taking some of the worst C++ syntax (excluding macros) and adding even more ugly syntax.
6 replies
8 recasts
31 reactions

franco pfp
franco
@francos.eth
This seems purposefully made to look uglier. A few imports take out a lot of the noise. Its also very generic code. If you’re a library developer you will be much more exposed to gnarly types. If you are just building stuff its way nicer.
1 reply
0 recast
1 reaction

franco pfp
franco
@francos.eth
This looks very much like standard library implementation code or low-level data structure library code: 1. The generic const parameter `N` for fixed-size data structures 2. Working directly with `MaybeUninit<T>` which is typically used for unsafe/low-level memory management 3. The complex iterator transformations and lifetimes 4. The `PhantomData` marker, which is often needed for complex generic types to satisfy the type system 5. The very generic type parameters probably means this is a foundational data structure
0 reply
0 recast
0 reaction