--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/7373d4af-a4af-4250-80ee-10e3ca54fbb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 03 Jul 2016, at 20:28, Peter Hamilton <petergh...@gmail.com> wrote:1. A breaking change between 1.2 and 1.3 that isn't called out is the move from `:micro_seconds` to `:microseconds` in `System.convert_time_unit/3
The old names work, but the new names don't work on older elixir.
The polyfill accepts new names regardless of Elixir version.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/9DF57743-8F22-4053-A197-58C8E765F3F7%40muskala.eu.
Unless called out as a new function or as explicit changes, I would expect a function that exists in 1.2.6 and 1.3.0 to behave the same. Now that I know it accepts old arguments I don't think it's a breaking change.
My point is less about whether this is right or wrong. I'm just providing a data point that greater than zero library developers find this difference between minor versions is confusing and not well documented.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/88b70499-1753-48b2-8a51-1a3adf060be8%40googlegroups.com.
My point is less about whether this is right or wrong. I'm just providing a data point that greater than zero library developers find this difference between minor versions is confusing and not well documented.
Let me provide the narrative to give better context.
1. I ran code written for 1.3 on 1.2.6.
2. It spit out an error about convert_time_units not supporting :micro_seconds.
3. I looked at the change log and found nothing about convert_time_units.
4. I looked at the 1.3 documentation and found the type to be http://elixir-lang.org/docs/master/elixir/System.html#t:time_unit/0 . I saw a good explanation of why Elixir uses different unit names than Erlang.
5. I looked at the 1.2.6 documentation and found Erlang time units were required.
6. I assumed that Erlang time units were no longer supported (because there is a clear change in spec that says they aren't).
7. I adapted my code on the assumption that users of 1.3 would need to use micro_seconds and users of 1.2.6 would need to use microseconds. I can probably simplify it to always use microseconds for now.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/CAGnRm4Lk3N%3D6MOMHX6CNLa3oGMOhP-H70LuFpCTif1043WGNsQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/CAOMhEnwRQkTHEWr3a7xNE-a5XEsTEX-C%3DMwymR1VugbPXvhSmA%40mail.gmail.com.