Timeline for How many arguments were passed?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 12, 2018 at 22:43 | comment | added | Olivier Grégoire | @PeterCordes That's why the "Try it online" link in my answer exists ;-) | |
| Apr 12, 2018 at 22:36 | comment | added | Peter Cordes | @OlivierGrégoire: I know some Java but haven't kept up with it at all. I was interested to see Sam's comment on what boilerplate is getting swept under the rug in a Java answer that lets it actually be really short. I agree it should be allowed (even though it does give you something that you don't normally get with Java functions, right, so it's not just boilerplate reduction it's giving you arg-counting built-in). Besides that, it's still interesting as a reply to "Java beating JS". | |
| Apr 11, 2018 at 18:09 | comment | added | SamYonnou | @OlivierGrégoire I know that lambdas are allowed, my point was that compared to JavaScript for example, you need a lot more extra code to set it up, even if you are using something like REPL and avoid the need for a main class/method (the need for the interface to be defined is what distinguishes it from JavaScript) | |
| Apr 10, 2018 at 16:15 | comment | added | Olivier Grégoire | @SamYonnou There is no difference with other lambdas, and as you mentioned, lambdas are fine. | |
| Apr 10, 2018 at 15:40 | comment | added | SamYonnou | @Therandomguy this requires something like interface x{void f(Object...a);} to be defined, and this lambda must be either stored in a variable of that interface type, or be passed to a method expecting that interface type, so I'm not really sure it counts for this challenge (even though usually java lambdas are allowed in codegolf challenges) | |
| Apr 10, 2018 at 8:14 | history | edited | Olivier Grégoire | CC BY-SA 3.0 | Added more test cases in the TIO link |
| Apr 10, 2018 at 7:08 | comment | added | The random guy | Java beating Javscript is rare enouth to be noticed | |
| Apr 10, 2018 at 5:44 | history | edited | Olivier Grégoire | CC BY-SA 3.0 | added 11 characters in body |
| Apr 10, 2018 at 5:36 | history | answered | Olivier Grégoire | CC BY-SA 3.0 |