[erlang-questions] json to map

Kevin Montuori montuori@REDACTED
Fri Aug 28 13:50:47 CEST 2015

>>>>> "rw" == Roelof Wobben <r.wobben@REDACTED> writes:
    rw> -type tword()  :: binary().
    rw> -type token() :: tInt()
    rw>              | tWord()

    rw> time_parser.erl:12: type tInt() undefined time_parser.erl:13: type
    rw> tWord() undefined
    rw> time_parser.erl:6: Warning: type tword() is unused

[Leaving aside all of the excellent advice that's been proffered...]

Did you read these messages carefully?  tWord() is undefined but tword()
is unused: the answer's staring you in the face.  If you've been writing
Erlang for a while this error/warning pair should ring a bell.

Perhaps you should revisit Mr. O'Keefe's email, specifically the part
where he discusses Erlang naming conventions (and tells you *exactly*
what's wrong with what you have)?


  Kevin Montuori

More information about the erlang-questions mailing list