Re: switch with several arguments

2017-12-13 Thread Remi Forax
t; On 13 Dec 2017, at 10:25, Remi Forax <fo...@univ-mlv.fr> wrote: >> >> Should we support a switch with several arguments ? >> >> By example: >> for(int i = 1; i < 100; i++) { >>System.out.println( >> switch(i % 3, i % 5) { >>

switch with several arguments

2017-12-13 Thread Remi Forax
Should we support a switch with several arguments ? By example: for(int i = 1; i < 100; i++) { System.out.println( switch(i % 3, i % 5) { case (0, 0) -> "FizzBuzz"; case (0, _) -> "Fizz"; case (_, 0) -> "Buzz";