Totem-Studios / lotus

Lotus is a type-safe compiled programming languages designed to simplify systems programming, achieving memory safety using RAII.
https://totemstudios.org/lotus
MIT License
4 stars 2 forks source link

Binary operators with different types [FEATURE REQUEST] #37

Open lucasnorman07 opened 3 months ago

lucasnorman07 commented 3 months ago

Is your feature request related to a problem? Please describe.

At the moment all binary operations require that both operands have the same type or else an error will be thrown.

Describe the solution you'd like

An extension of the createBinaryOperation function to allow for operations even if the operands have different types.