Created
December 2, 2011 14:20
-
-
Save yuroyoro/1423386 to your computer and use it in GitHub Desktop.
Scalaでも(Fate/Zero) や (Fate/stay night) でメソッド呼べる > @mnzktw 「(Fate/Zero) や (Fate/stay night) でJava のメソッドが呼べそうな気がしたらきっとあなたは clojurian」
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
scala> trait Term { def night = () } | |
defined trait Term | |
scala> object Zero extends Term | |
defined module Zero | |
scala> object stay extends Term | |
defined module stay | |
scala> object Fate { | |
| def /(t:Term) = t | |
| } | |
defined module Fate | |
scala> Fate/Zero | |
res6: Term = Zero$@600c199f | |
scala> Fate/stay night |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment