(no title)
badsectoracula | 19 days ago
Of course you can make codegen as part of your build process with any language, but that can be kludgy (and often limited to a single project).
badsectoracula | 19 days ago
Of course you can make codegen as part of your build process with any language, but that can be kludgy (and often limited to a single project).
skocznymroczny|19 days ago
srean|19 days ago
arcadia_leak|19 days ago
schveiguy|19 days ago
auto is used as a return type because it's easy, and in some cases because the type is defined internally in the function and can't be named.
You would not like the code that uses auto everywhere if you had to type everything out, think range wrappers that are 5 levels deep.
ameliaquining|19 days ago
Real compile-time reflection is in the works; the very earliest stages of a prototype implementation were released to the nightly channel last month (https://github.com/rust-lang/rust/pull/146923), and the project has proposed (and is likely to adopt) the goal of completing that prototype implementation this year (https://rust-lang.github.io/rust-project-goals/2026/reflecti...), though it most likely will not reach the stable channel until later than that, since there are a whole lot of complicated design questions that have to be considered very carefully.
debugnik|18 days ago
Using serde_json to accurately model existing JSON schemas is a pain because of it.
I personally find third-party deriving macros in Rust too clunky to use as soon as you need extra attributes.