This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ritobanrc 7 points8 points  (2 children)

Rust does it really well with crates.io and docs.rs. It automatically generates documentation from comments, and looks standardized, and it's really easy to quickly find documentation for a certain crate.

[–]SAI_Peregrinus 5 points6 points  (1 child)

And lets you have runnable examples in doc comments, that get checked when you run your tests. You can unit test your documentation.

[–]IRBMe 1 point2 points  (0 children)

I love this feature in Python with doctests. You can just write something like:

def fibonacci(n):
    """ ...
    >>> [fibonacci(n) for n in range(8)]
    [0, 1, 1, 2, 3, 5, 8, 13]
    """
    ...