Re:Building an efficient and portable programming language w...
by dnautics on Thursday May 13, 2021 @02:59PM
(#27145909)
proposed and rejected. I went to a lang meeting and tried to steelman the issue, without having a strong investment either way (I had one use case, where I would slightly prefer the infix operation).
Re:Building an efficient and portable programming language w...
by stephc_int13 on Thursday May 13, 2021 @03:16PM
(#27146150)
Good to see it was discussed :)
It is probably better to have native support for small vector operations, as this can also help to streamline SIMD optimization.
In practice (as a video game dev) I only use operators overloading to have infix notation on vector maths.
With something like that:
var x = a [+] b;
There is no possible mistake.