--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/b7f939f4-50a1-49f7-bcc6-c82405c1eb33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Stas,Given that we already have <|>, I don't see a problem with adding <*>. My only question is why choose dot product to have an operator? Wouldn't matrex end-up requiring other operators anyway? If we add <*>, how would those other operators look like in terms of consistency?
On Thu, May 17, 2018 at 11:10 AM, Stas Versilov <stas.v...@gmail.com> wrote:
Hello!I'am developing a matrix manipulation library for Elixir (https://github.com/versilov/matrex)and it would be really nice to have <*> operator, so that it could be overriden for matrices dot product (or element-wise multiplication).Is it possible to add it?
--
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 unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/8cebaaeb-fe12-4601-a3ac-5af683304fc2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4K8bztEvVs6MPMKY53mia1MwFtWMFtnHPeysQxo6_GgsA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4K8bztEvVs6MPMKY53mia1MwFtWMFtnHPeysQxo6_GgsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/ad3ac929-1813-46da-8377-2a69f7b5dd60%40Spark.
Michał, I think the issue with your proposed approach is precedence. <+> and <*> need to have different precedences and where should we put those operators compared to all others?
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/e0d11c85-087c-4bba-9f5e-f8f8f40c3a07%40Spark.
It would but it is worth saying we are adding a new rule that we don't have right now. Today all custom operators currently have the same precedence:
José ValimFounder andDirector of R&D
On Thu, May 17, 2018 at 1:26 PM, Michał Muskała <mic...@muskala.eu> wrote:
On 17 May 2018, 13:13 +0200, José Valim <jose....@gmail.com>, wrote:
Michał, I think the issue with your proposed approach is precedence. <+> and <*> need to have different precedences and where should we put those operators compared to all others?
That's a good point. What if we put them at the same level as the regular operators? Would that work?Michał.
--
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 unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/f3fcbbbb-0f0f-40d8-8b8d-3b87107962ec%40googlegroups.com.
Let's go with this proposal then: <+>, <->, <*> and </> with the same precedence as the math equivalents.