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/12/18 10:43:35 UTC

[GitHub] [netbeans] neilcsmith-net commented on pull request #5013: Make more hints for java available

neilcsmith-net commented on PR #5013:
URL: https://github.com/apache/netbeans/pull/5013#issuecomment-1356770439

   > showing the type for `var` at the end of the line is a nice trick, but I am not sure if it will scale. Specifically, if we try to add the same feature for implicitly type lambda parameters, it will be hard to put the types at the end of the line. Ultimately, `var` will be the an outlier in how other similar things will be handled. (And, overall, we may need to add more stuff at the end of lines - debugging info comes to mind.)
   
   @jlahoda that depends a little whether you consider if it's conceptually the `var` type that should be hinted, or the return type of methods where it's chained or not assigned to the same explicit type. eg. could consider hinting where assignment is to a super type as well as `var`?
   
   Personally I'm not sure completely inline hints scale anyway.  Some users get confused by non-editable text appearing in amongst their text, and they affect formatting of code (eg. by default we show a right margin guide, which becomes less useful the more hints there are).  Whereas there's at least more space at line ends to show information in a potentially less confusing way?  Or we could consider vertical space instead?
   
   I have less concerns where hints are not enabled by default though.
   


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