I read years ago when they added generics to Java that supposedly angle brackets (e.g.: List<String>()
) was really hard to get the compiler to see correctly. Have you noticed this?
RE: Writing a simple Compiler on my own - Action Rules for Loop Statements and some Fixes [C][Flex][Bison]
You are viewing a single comment's thread from:
Writing a simple Compiler on my own - Action Rules for Loop Statements and some Fixes [C][Flex][Bison]
Haha seems legit...
Must be a pretty difficult grammar rule to setup :)
It's quite tricky when symbols are being used in more than one places of the grammar. A great example in C might be the '*' , which is the multiply symbol and also being used for pointers. The big problem with the generics in Java must have been something similar! The symbols < and > are also being used as relational operators. So, there might have been conflicts between function calls (object constructor actually), objects etc, which of course can also be compared using such relational operator!
Nice topic!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @inertia
Here's a tip for your valuable feedback! @Utopian-io loves and incentivises informative comments.
Contributing on Utopian
Learn how to contribute on our website.
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit