manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.4k stars 125 forks source link

Support `!` operator overloads #428

Open rsmckinney opened 1 year ago

rsmckinney commented 1 year ago

From Michael Chow on slack channel:

Hi, What about supporting operator overloading for ! ? Recently I noted a negative predicate is very useful in some case, such as getting >the negation of Predicate.isEqual(someObj). However we have available now only the operator overloading for -(unaryMinus), which >means negation of numbers, not predicates.

mizhoux commented 1 year ago

I can't wait to use ! instead of static methods like Predicate.not. May I ask whether this feature already in development?

rsmckinney commented 1 year ago

Hi @mizhoux. Not implemented yet, but it will be soon after manifold-sql development is finished and released.

rsmckinney commented 9 months ago

Feature available in release 2024.1.1

mizhoux commented 9 months ago

Well done! I can't wait to try it.