-
Notifications
You must be signed in to change notification settings - Fork 0
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
restrict use of fluent to specified methods #5
Comments
Fluent only transforms object method calls to static method calls, not the other way around. Your static |
Yes sorry for my unclear wording here. public static void log(String msg) in my codebase. I currently see 3 benefits in making it explicit with annotations:
|
Okay, I broadened the scope of this issue a bit so we aren't constrained to annotations. My prototype for Fluent actually only transformed calls to methods ending in "EX", (e.g. Lombok and Manifold use annotations, Kotlin has a different syntax for declaring extensions methods ( I think if Fluent were to add annotations, it would lose it's point of difference from Lombok and Manifold. Mostly, those annotations are for the IDE, anyway. Annotations would also mean you can't use anything from commons If we were to add new syntax, another option would be Personally, I'm okay with uniform function call syntax. It makes an IDE plugin more problematic, but I don't think we should be coding for our IDEs. For now, we also want to make minimal changes to the compiler so patching future versions is easier. |
To avoid transforming
login(String,String)
into an extension of String, it would be nice if this could be limited to only transform methods to an Extension, which do have a specific annotation.This feature could be optional, although I would always enable it, I think...
The text was updated successfully, but these errors were encountered: