@fasterthanlime i would add a compiler-supported `declaration_of!(some-struct-or-trait-name)` macro that is replaced with the trait declaration (aka the trait def without code blocks) or the struct declaration (struct field definitions and a list of all implemented traits).
that way it would be possible to auto-generate struct proxies, e.g. when composing multiple types or for newtypes.
nanobot248@mtd.sysblog.at
@nanobot248@mtd.sysblog.at
Posts
-
I am NOT making a Rust replacement, but — if you could fix one* thing about Rust syntax/semantics/etc.