[erlang-questions] Edoc Error
Tue May 1 18:12:27 CEST 2007
Logan, Martin wrote:
> %% AppVsn = string() | 'LATEST' | "LATEST"
> The “LATEST” string causes the following error.
> /home/martinjlogan/work/faxien/lib/faxien/src/fax_install.erl, function
> install/5: at line 37: syntax error before: "LATEST"
> Looks like a bug.
It's not. You can't specify particular strings; that's like saying
"the list [76,65,84,69,83,84], but no other list". This is a limitation
found in pretty much every type system out there. Anyway, you already
specify that AppVsn can be a string; you'll just have to explain in the
doc text that it can have the particular value "LATEST".
More information about the erlang-questions