Created
January 6, 2013 20:48
-
-
Save spullara/4470115 to your computer and use it in GitHub Desktop.
JDK8 is going to be great. Webbit is also really nice (based on Netty).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package webserver; | |
import org.webbitserver.WebServers; | |
public class App { | |
public static void main(String[] args) { | |
WebServers.createWebServer(8080).add((req, res, con) -> { | |
res.content("Hello, world!").end(); | |
}).start(); | |
} | |
} |
If you mean default parameters, no. Still have to rely on overloading. It is on my list to get in along with local type inference for variables.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very slick. Will you be able to do optional function parameters in JDK8?