This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Request for @example tag for Scaladoc

3 replies
Ken McDonald
Joined: 2011-02-13,
User offline. Last seen 42 years 45 weeks ago.
I've done a number of years as a tech writer, and nothing, absolutely _nothing_ is as important to good tech writing as examples. I'm not sure what form an @example tag should take, but here's one thought:
@example {A code snippet}  optional text explanation
The braces shouldn't cause problems, I would imagine, because the code included in them is assumed to be correct and so have balanced braces. The optional text explanation would explain the result of executing the code, if such explanation was necessary. The big advantages of having such a tag are
1) It encourages people to write examples.2) The examples can be nicely formatted in the doc output to make things easier to read.
I know this is low on the totem pole, but I figured it couldn't hurt to ask.
Thanks,Ken
Seth Tisue
Joined: 2008-12-16,
User offline. Last seen 34 weeks 3 days ago.
Re: Request for @example tag for Scaladoc

>>>>> "Ken" == Ken McDonald writes:

Ken> I know this is low on the totem pole, but I figured it couldn't
Ken> hurt to ask.

It hurts when you ask on scala-internals. Ow!

Ken McDonald
Joined: 2011-02-13,
User offline. Last seen 42 years 45 weeks ago.
Re: Request for @example tag for Scaladoc

My apologies--I would've thought that the Scaladoc system would be part of the internals (after all, it pulls data from the AST). Where should I post such requests in the future?

Ken

On May 18, 2011, at 4:14 PM, Seth Tisue wrote:

>>>>>> "Ken" == Ken McDonald writes:
>
> Ken> I know this is low on the totem pole, but I figured it couldn't
> Ken> hurt to ask.
>
> It hurts when you ask on scala-internals. Ow!
>

Seth Tisue
Joined: 2008-12-16,
User offline. Last seen 34 weeks 3 days ago.
Re: Request for @example tag for Scaladoc

>>>>> "Kenneth" == Kenneth McDonald writes:

Kenneth> My apologies--I would've thought that the Scaladoc system
Kenneth> would be part of the internals (after all, it pulls data from
Kenneth> the AST). Where should I post such requests in the future?
Kenneth> Ken

scala-language or scala-debate, I think.
http://www.scala-lang.org/node/199 has the list descriptions.

Cheers,

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland