Chris2011 commented on PR #4885:
URL: https://github.com/apache/netbeans/pull/4885#issuecomment-3531615637

   @jlahoda I know that we already have embeddings in NetBeans, but this is 
based on language standard featuures. The IDE knows script or style and knows 
this is JS or CSS and so on. But this is because the parser knows those tags 
that are not artificial.
   
   This example here in JS will break and will not compile, if we will have 
this as an annotation:
   
   ```JavaScript
   @Language("sql")
   const sqlString = "SELECT * FROM users WHERE age > 30 AND city = 'New York'";
   
   function foo(@Language("sql") sql) {
       return null
   }
   ```
   
   This is why i mean this should be a language independent feature if we want 
to be handled this by the IDE. FOr java there is maybe not a problem of custom 
annotations, but I also need to ask my self when I use VS Code or any other 
IDE, what this annotation makes. This will unfortunately not work for other 
languages than Java.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to