Created
November 3, 2011 03:38
-
-
Save shomah4a/1335714 to your computer and use it in GitHub Desktop.
なんとなくこんなことしてた
This file contains 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
class Request() | |
{ | |
} | |
class Response() | |
{ | |
} | |
type WSGIApp = { def apply(req: Request): Response} | |
def test(app: WSGIApp) = | |
{ | |
println("hello, world") | |
} | |
def app(aaa: Request): Response = | |
{ | |
new Response | |
} | |
class Test() | |
{ | |
def apply(aaa: Request): Response = | |
{ | |
new Response | |
} | |
} | |
test(app _) | |
test(new Test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment