Predicates icon indicating copy to clipboard operation
Predicates copied to clipboard

Annotation macros

Open note opened this issue 8 years ago • 3 comments

I created branch macros to which I will be creating next PR's related to reimplementation of Predicates using macros. This PR is mostly for code sharing and discussion - it just reimplements Predicate1 using macro annotation.

@wheaties please take a look, I am really interested what you think about such approach. I slightly changed an API in 3 places - will add a github comments in those lines in a minute.

note avatar Mar 15 '16 21:03 note

This reduces a lot of boilerplate. You intend to have the macro essentially generate all the variants, a la boilerplate.scala?

:+1:

wheaties avatar Mar 16 '16 00:03 wheaties

Yeah, I want to have macro generating all variants of Predicates.

note avatar Mar 16 '16 07:03 note

I should add, that if we ever want to get to that 2.10 cross build (yes, I know, I've been terrible about it) while also introducing macros, we should consider adding macro-compat from Miles Sabin.

wheaties avatar Mar 18 '16 17:03 wheaties