Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Scala

Name: Anonymous 2011-04-18 9:55

Listen brahs. I have a dirty anus that needs cleaning: Java. I learned Java as my first language in school and now that I learned Scheme and am learning Haskell, I figured I may as well not let that go to waste and learn Scala. Is it simple to go from Java to Scala? Or is the syntax strange in some places. Because I looked over some code snippets and it seemed decent.

Name: Anonymous 2011-04-18 13:15

>>82
It's a Lisp dialect, because it has macros.

e:m:if @body -> $@body.{#($@t then $@a else $@b) -> #(_if $t $a $b)
                       ;#($@t then $@a         ) -> #(_if $t $a no)
                       ;#($t       $a       $b ) -> #(_if $t $a $b)
                       ;#($t       $a          ) -> #(_if $t $a no)
                       ;default                  -> error "if: syntax error"}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List