On 7/21/12 11:54 AM, David Bruant wrote:
What do you think?
First off, there are several problems with this code, the most obvious of which is that it's an awkwardly newtype'd record and not a struct. Fixing that should make the code look a lot less awkward.
As for getters and setters, I've thought about them, but I'm really inclined to say YAGNI here. C# added them, and they actually accrued a lot of complexity over time (autogenerated getters and setters, etc). You can pretty easily make a function opts() and set_opts(). Our complexity budget is very strained as it is.
Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
