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/08/28 08:12:12 UTC

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

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

   Sorry for belated reply. A few comments:
   -I suspect for a long time that we will need a way to customize which inline hints are shown and which are not. Whether the number of hints right now requires that is a question.
   -using an explicit type for a `var` instead of an inline hint works only in code where one can write the explicit type. It does not work for reading existing code written by someone else, for example.
   -replacing `var` with an explicit type - even if we found a way to replace the views, it would still change the formatting, correct? For example, if we replace `var` with `Map<? extends String, ? extends String>`, the length of the text will be different?
   


-- 
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