Thank you for your reply. Something could be said for the creation of rational numbers being an 'alternative mathematical division', and using </> in the future. But of course that is not possible in Elixir today, so it is not something that could be migrated towards right now.
Maybe the best way forward is to rely less on the operator (any particular operator for that matter) for the construction of structs (nor for the `Inspect` implementation). Again, thank you. ~Marten / Qqwy On Friday, September 30, 2022 at 12:06:58 PM UTC+2 José Valim wrote: > Our goal, at the moment, is to introduce <*>, </>, <+>, <-> which could be > used by projects which need to provide alternative mathematical operations. > In this case, <|> would look out of place, because it would resemble one of > such operators, but it is not. In your case, perhaps the best path is > replace <|> by <~> (which is why we didn't deprecate both). > > On Fri, Sep 30, 2022 at 12:00 PM w...@resilia.nl <w...@resilia.nl> wrote: > >> Dear core team, >> >> Part of the Elixir v1.14 changes is the hard deprecation >> >> "[Kernel] Deprecate the operator <|> to avoid ambiguity with upcoming >> extended numerical operators" >> >> Currently, the rational number library 'Ratio >> <https://hex.pm/packages/ratio>' makes pervasive use of this operator to >> represent its rational numbers. >> >> What would be the proper way to move forward? >> The new changes are not here yet. It would be nice to modify the library >> to ensure both forwards- and backwards-compatibility, so it is ready once >> the changes actually land and people do not need to alter the code using it >> at that time. >> >> How will `<|>` be used in the upcoming extended numerical operations? >> Will rational numbers become part of core Elixir itself? >> >> ~Marten / Qqwy >> >> -- >> You received this message because you are subscribed to the Google Groups >> "elixir-lang-core" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to elixir-lang-co...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elixir-lang-core/9f6650b6-03d7-4f15-8be9-4302bc94bef7n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elixir-lang-core/9f6650b6-03d7-4f15-8be9-4302bc94bef7n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/4c9ae0a8-34b0-4bff-9111-e4a5d5e98340n%40googlegroups.com.