SHARE
TWEET

Scala is fucking good language: my first program on Scala

v_ignatyev Jan 15th, 2013 26 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top