More on Rust

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Feb 10 08:33:26 PST 2011


On 2/10/11, spir <denis.spir at gmail.com> wrote:
> I'm not a great fan of auto, neither, use it would happily live w/o it,
> except
> for functions operating on ranges, that return types coming from who-knows
> where (certainly another planet).

auto is great for rapid prototyping. And so are templated functions.
After I'm satisfied with the functionality of my code I usually
replace much of my use of auto with the actual type (mostly variable
declarations). auto is still useful in templates, where writing a
return type can be complicated.


More information about the Digitalmars-d mailing list