edoc question

Martin Bjorklund <>
Fri Oct 21 12:13:07 CEST 2005


Richard Carlsson <> wrote:
> But! - I've recently added it, and it will be in R10-8!

Great!

> Note that I recommend using names like foo() for datatypes
> in Erlang, rather than variable names such as Foo, which are
> more typically used as type variables (i.e., that are bound
> to some data type).

Yeah, the example was from a function definition.

> > I tried another variant, to use edoc comments like this:
> > 
> >   % % @type Foo = #foo{}
> > 
> > but it seems as edoc parses the expression even if it's commented out?
> 
> Hm. It shouldn't. Can you produce a test case?

%%%--------------------------------------------------------------------
%%% edoc types
%%% @type session_handler() = pid()
% % @type cs() = #cs{}
%%% @end
%%%--------------------------------------------------------------------

The error I get is:
   at line 41: syntax error before: '%'


/martin



More information about the erlang-questions mailing list