On 3/12/14 2:24 AM, Maciej Piechotka wrote:
+ impl with potentially partial methods? Is the 'all nodes consuming same amount of memory' too much memory?
Yes, that's too much memory. You see this in rustc actually. rustc uses a similar structure and AST nodes take up too much memory, leading to large memory usage of the compiler.
I also don't see how your solution allows nice access to element-specific fields if you statically know you have an `Element`.
Patrick _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev