News for hackers. Stuff that matters.
Re:Parsing C++ is literally undecidable (2013) by millstone on Friday October 04, 2019 @01:46AM (#21155127)
Java has generics and overloading; how far can you realistically get before building a full frontend? Honest question.
Re:Parsing C++ is literally undecidable (2013) by username90 on Friday October 04, 2019 @07:18AM (#21156537)
Java generics are just syntactic sugar for Object, so not a problem at all since you can't do anything with them.

Java overloading is simple since all functions are in the same file (so doesn't change overload behavior depending on which files are imported) and Java lacks the user type casts C++ has, so just pick the signature fitting all provided values (with numeric casts) or throw.

Re:Parsing C++ is literally undecidable (2013) by josefx on Friday October 04, 2019 @09:14AM (#21157275)
> Java generics are just syntactic sugar for Object,

Only if you do not have a concrete boundary in the generic declaration, T extends Foo can result in a function definition that takes a Foo instead of an Object.

> Java overloading is simple since all functions are in the same file (so doesn't change overload behavior depending on which files are imported)

import static java.lang.Math.*; for programmers too lazy to write Math.sin instead of sin.

Re:Parsing C++ is literally undecidable (2013) by saagarjha on Friday October 04, 2019 @02:22AM (#21155281)
Anecdotal, but I’ve found it difficult to find a Java autocomplete plug-in that doesn’t run Eclipse in the background to work.
Re:Parsing C++ is literally undecidable (2013) by lallysingh on Friday October 04, 2019 @06:22PM (#21162415)
The grammar is still context free.