Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider to use or allow to use infix operators #119

Open
YarikTH opened this issue May 10, 2023 · 0 comments
Open

Consider to use or allow to use infix operators #119

YarikTH opened this issue May 10, 2023 · 0 comments
Labels
enhancement New feature or request very low priority

Comments

@YarikTH
Copy link
Owner

YarikTH commented May 10, 2023

Description

Implementation is quite small:
https://github.com/boostorg/hof/blob/develop/include/boost/hof/infix.hpp
https://github.com/klmr/named-operator/tree/master

Such infix operators can be as declarative and useful as existing overloaded lift operators. I don't see which infix operators can be provided by default, but adding ability to build user defined operators could be cool. Currently overloaded signal operators '<' and '>' interfere with ability to use 3rd-party libraries to make triangle brackets infix operators, so:

  1. Provide ureact specific way to make infix operators
  2. Allow some kind of customization point that allows to disable overloaded signal operators for some types (it might allow to overload binary operators '<<', '>>', '~', '|', '&' too)
@YarikTH YarikTH added enhancement New feature or request very low priority labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request very low priority
Projects
None yet
Development

No branches or pull requests

1 participant