Description
#3054
Ongoing story since 3 Years zero development, and we are in beta for Java 10 and can't use simpel Java 8 features in Processings IDE. What more to say.
I use Processing for very small scetches to relax and have fun. I think many users do. For newbies their could be and an warning msg: "Check your code". We can also phrase the "default" Java SDK jdb to extract the line nummer to a String msg: "look closer at Line 9 ". Maybe an emoj somewhere (optional) 🌞.
// would be nice for Processing
// works in Eclipse Oxygen.2 Release (4.7.2)
int n = 4;
int[][] array = new int[n][n];
java.util.stream.IntStream.range(0, n).map(i->array[i][i] = 1).toArray();
java.util.Arrays.stream(array)
.forEach(x->processing.core.PApplet.println(java.util.Arrays.toString(x)));
Check this out it works in my browser.
http://es6-features.org/#Constants
if i use the native Java compiler java -cp * Code.java | jar -cf exe.jar *.class | java -cp * Code and have a bug, the phraser will print me the point where the error occur into my console window. Maybe it is possible to use a simpel String method to print that message into Processing IDE
Maybe their is also a simple hack to ANTLR, when ANTLR would sees something from Java 8 just igonere it in processsing.
for (string in error messages)
if (string == "->") continue;
else print(🌞)