[erlang-questions] Is inet_parse.erl deprecated?

151 views
Skip to first unread message

Matthias Lang

unread,
Sep 20, 2012, 9:12:49 AM9/20/12
to erlang-q...@erlang.org
I find these functions quite useful:

inet_parse:address/1
inet_parse:ipv4_addr/1
inet_parse:ipv6_addr/1
inet_parse:ntoa/1

but inet_parse isn't documented at all. Is that an oversight, or are
those functions available through something else?

I'm not the only one using them; they're called the 'diameter', 'ssh'
and 'public_key' applications as well as by a number of things in the kernel.

Matt
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Raimo Niskanen

unread,
Sep 21, 2012, 8:53:57 AM9/21/12
to erlang-q...@erlang.org
On Thu, Sep 20, 2012 at 03:12:49PM +0200, Matthias Lang wrote:
> I find these functions quite useful:
>
> inet_parse:address/1
> inet_parse:ipv4_addr/1
> inet_parse:ipv6_addr/1
> inet_parse:ntoa/1
>
> but inet_parse isn't documented at all. Is that an oversight, or are
> those functions available through something else?

It is an oversight, or rather it is on our ToDo list.

But we have not decided if it is those we will document, or if
it is better to create wrappers a'la inet:parse_address/1 to
not expose the module inet_parse as an API module...

There are too many using these so it is probably not possible
to remove them without a deprecation cycle, even though they
never have been supported. And they will not be deprecated
until there are alternatives e.g in inet.

>
> I'm not the only one using them; they're called the 'diameter', 'ssh'
> and 'public_key' applications as well as by a number of things in the kernel.
>
> Matt
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions

--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB

Bengt Kleberg

unread,
Sep 21, 2012, 9:23:50 AM9/21/12
to erlang-q...@erlang.org

Greetings

If you care, I prefer adding them to the inet module.


Bengt

Sent from Moxier Mail
(http://www.moxier.com)


----- Ursprungligt meddelande -----
Från: Raimo Niskanen <raimo+erlan...@erix.ericsson.se>
Till: "erlang-q...@erlang.org" <erlang-q...@erlang.org>
Skickat: 21-09-2012 2:54 em
Ämne: Re: [erlang-questions] Is inet_parse.erl deprecated?
Reply all
Reply to author
Forward
0 new messages