We already compile and run all examples in the docs as part of the testsuite.

On Wed, Jun 18, 2014 at 9:27 AM, Matthieu Monrocq
<matthieu.monr...@gmail.com> wrote:
>
>
>
> On Wed, Jun 18, 2014 at 6:22 PM, Steve Klabnik <st...@steveklabnik.com>
> wrote:
>>
>> > In case of trivial entities
>>
>> The problem with this is what's trivial to you isn't trivial to someone
>> else.
>>
>> > think about the amount of update this may make necessary in case Rust
>> > language syntax changes.
>>
>> Literally my job. ;) Luckily, the syntax has been pretty stable
>> lately, and most changes have just been mechanical.
>
>
> If you could, it would be awesome to invest in a check that the provided
> examples compile with the current release of the compiler (possibly as part
> of the documentation generation).
>
> This not only guarantees that the examples are up-to-date, but also helps in
> locating out-dated examples.
>
> On the other hand, this may require more boilerplate to get self-contained
> examples (that can actually be compiled), so YMMV.
>
> -- Matthieu
>
>>
>> _______________________________________________
>> Rust-dev mailing list
>> Rust-dev@mozilla.org
>> https://mail.mozilla.org/listinfo/rust-dev
>
>
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>



-- 
http://octayn.net/
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to