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 10:06:55 UTC

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

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

   -0 on this for me. I agree with @mbien here -
   
   > not a fan of IDEs which display information inline which is not in the code, since it influences how code is written/formatted and makes it somewhat IDE dependent. Also worth noting that simply declaring the type takes less space than using var + inline hints in most cases (e.g in the example given above).
   > Removing information just to add it right back a few chars to the right via an IDE assisted feature is a bit weird to me :)
   
   In general inline hints serve a purpose, but I've definitely noticed their influence on writing / formatting - I think how we display the data might need some rethinking.
   
   Showing parameter names and other information that cannot (easily) be in the source makes more sense than showing the type information for `var` which could be declared by choice.


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