You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/18 15:00:00 UTC

[GitHub] [netbeans] ratcashdev commented on pull request #4522: Adding inline type hint for 'var' variables

ratcashdev commented on PR #4522:
URL: https://github.com/apache/netbeans/pull/4522#issuecomment-1320136654

   `var` is making me nuts, especially, if it's not in front of a `new` keyword and constructor call, where the type is clearly given, but in front of a method call: `var x = callMethod(someArgs);`
   
   The team I work in, decided to make extensive use of var, regardless of the context. As a result, I have to move my cursor to the method and hit `CTRL+SPACE`. That will show the type, but i will still have to go to the method (CTRL+Click) to be able to navigate into the class of the type that's returned (to look up some implementation details).
   
   As I see it:
   1. inline hint: GOOD
   3. mousover-hint of the type when on top of `var`: GOOD.
   4. navigable type hint (i.e. CTRL+CLICK on the inline hint or var directly, taking me to the class): GREAT
   5. getting rid of `var` altogether: FANTASTIC.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists