Advertisement
v_ignatyev

Scala is fucking good language: my first program on Scala

Jan 15th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.53 KB | None | 0 0
  1. //
  2. // Hello world on Scala programming language
  3. //
  4. // See explanation at: http://joydevel.blogspot.ru/2013/01/scala-is-fucking-good-language-my-first.html
  5. //
  6.  
  7.  
  8. object Main {
  9.   def main(args: Array[String]) {
  10.  
  11.     trait somegood { def good(o:Any) = {} }
  12.     object fucking extends somegood{
  13.       override def good(o:Any) {
  14.         println("yeah!")
  15.       }
  16.     }
  17.     object language;
  18.     object scala {
  19.       def is (o:Any):somegood = fucking
  20.     }
  21.  
  22.     scala is fucking good language
  23.    
  24.     //will output: yeah!
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement