Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 33
    \$\begingroup\$ Java beating Javscript is rare enouth to be noticed \$\endgroup\$ Commented Apr 10, 2018 at 7:08
  • 3
    \$\begingroup\$ @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) \$\endgroup\$ Commented Apr 10, 2018 at 15:40
  • 5
    \$\begingroup\$ @SamYonnou There is no difference with other lambdas, and as you mentioned, lambdas are fine. \$\endgroup\$ Commented Apr 10, 2018 at 16:15
  • \$\begingroup\$ @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) \$\endgroup\$ Commented Apr 11, 2018 at 18:09
  • 1
    \$\begingroup\$ @PeterCordes That's why the "Try it online" link in my answer exists ;-) \$\endgroup\$ Commented Apr 12, 2018 at 22:43