Java 8 lambda syntax decided - same as C# and Scala
11–20 of 81 posts
Re: Java 8 lambda syntax decided - same as C# and Scala
#12Re: Java 8 lambda syntax decided - same as C# and Scala
#13Re: Java 8 lambda syntax decided - same as C# and Scala
#14Lambdas are a lot of fun on C#. new Thread( => { doStuff(); }).Start();
According to the grammar int the OP, you need ()'s, no? new Thread(() => { doStuff(); }).Start(); Or can they be elided in C# or Scala?
Re: Java 8 lambda syntax decided - same as C# and Scala
#15Earlier quoted context omitted.
According to the grammar int the OP, you need ()'s, no? new Thread(() => { doStuff(); }).Start(); Or can they be elided in C# or Scala?
Actually for just that example you don't need any of it. new Thread(doStuff).Start();
Re: Java 8 lambda syntax decided - same as C# and Scala
#16Re: Java 8 lambda syntax decided - same as C# and Scala
#17Re: Java 8 lambda syntax decided - same as C# and Scala
#18Earlier quoted context omitted.
How is this a mistake ?
Erm, its not?. Shawndumas was just pointing out that a decision was finally made. They were grappling over the syntax for over two three years. Now they will just need to grapple over with what kind of scoping that Java's lambdas will have.
Re: Java 8 lambda syntax decided - same as C# and Scala
#19Re: Java 8 lambda syntax decided - same as C# and Scala
#20try { // for a really long time } finally { // made a decision }
try { /* for a really long time */ } finally { /* made a decision */ }