IO.inspect with :label option not working in iex

While reading IO module docs, I encountered a definition with IO.inspect with :label option which will be decorated output with the :label we have provided. But while I try this in interactive shell iex it is showing just the data with out label. Is there any specific reason to happen like this.
Here is the screenshot of docs and iex

This feature was introduced in Elixir 1.4. What version do you use?

I think that might be the cause …
I am using
Elixir 1.3.4
This is not even raised error or exception like nofunction available.
Thanks for Pointing out this

Most functions in Elixir ignore options they don’t understand. This is advantageous in some situations (when composing functions with different options), but has some issues in other situations (typos or “keys from future”). So, as always, it’s a tradeoff.

1 Like

Yea . I agree with you. It does the some thing useful that related one.
I missed the version here. Thanks for :help :bouquet:

the confusion probably came from the fact that elixir stable docs currently point to v1.4.0-rc instead of v1.3.4 - this issue is reported here https://github.com/elixir-lang/elixir-lang.github.com/issues/902 and hopefully will be fixed soon

2 Likes

So … when 1.4.0 final is released, what will be done to prevent this kind of confusion from reemerging?

IMHO an “introduced in 1.4” or similar annotation on this feature would be helpful.

2 Likes

Very much so… Python docs are often annotated with information about the version that introduced a function or feature; I’ve always found that to be extremely helpful.

1 Like

+1, that would be neat!

2 Likes