Skip to content
This repository was archived by the owner on Nov 29, 2026. It is now read-only.
This repository was archived by the owner on Nov 29, 2026. It is now read-only.

Redunant user-implementable operators #25

Description

@shishioko

What and why?
The suggestion is to add a big variety of optional operators that don't have to be implemented by default but can be used for additional features or user implemented features in context where some featur3es may be common but lack an operator, such as a dot product.

Concretely, the following operators could be implemented (shown with a "=" for readability, if applicable):

(if #23: overwritable) += -= *= /= \= ! ? <= >=
(if #23: overwritable) ++= --= !!= ??= **= //=

(implementable) <<= >>= \=
(implementable) @= #= $= %= ^= &= _= |= .= :=
(implementable) @@= ##= $$= %%= ^^= &&= __= ||= ..= ::=

as well as their (if #24 is implemented) approximated equivalent operators, which are defined seperately.

Notably, these would be implementable with different combinations of types, such as when multiplying a vector by a single number.
To be clear, with this suggestions, the existing operators could be implemented with multiple different signatures, almost like a method/function named after the operator.

Additionally, some new operators could optionally be implemented, such as, per my suggestion:

~? ~! to compare by reference address, instead of true data equality, unless overwritten, contrasting ? and ! for value comparisons.

^= to exponentiate
|= to calculate a logarithm
#= to calculate a root

\= to calculate the non negative modulo ( mod(mod(x,n)+n,n) )
<<= to get the smaller (minimum) value

= to get the bigger (maximum) value

as well as the according approximation variants (if #24 is implemented).

Activity

  1. Zffu commented on Feb 24, 2026

    @Zffu
    Member

    This will be added in a future release.

    Every operator will also have assigment and no assignment variants (usually signified by the =)

  2. self-assigned this
    on Feb 24, 2026
  3. added theissue type on Feb 24, 2026
  4. moved this to Todo this release in Quickfallon Mar 3, 2026
  5. moved this from Todo this release to Todo Later in Quickfallon May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

  • Status
    Todo Later

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions