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/23 12:13:31 UTC

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

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

   just a thought:
   
   If the IDE is already changing the text, why not put the type where it belongs? A direct way of helping with readability of code which overuses `var` could be to replace `var` with the actual type and draw it in a different color. Could be a toggle button somewhere or hotkey. It would have to switch back to var if the text cursor is over it which complicates things unfortunately I have to admit.
   
   This wouldn't change the syntax of the language and wouldn't encourage overuse of var / change of formatting / create IDE dependence.
   
   Maybe there is a way to solve those use cases differently so that NB doesn't have to enable inline hints by default (even though the feature itself is probably required anyway since some users might want to have feature parity with other IDEs)


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