Skip to content

Instantly share code, notes, and snippets.

@paxer
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paxer/642e04e72d5c107a967b to your computer and use it in GitHub Desktop.
Save paxer/642e04e72d5c107a967b to your computer and use it in GitHub Desktop.
Love Scala!
# Ruby
class Example
def initialize(n,d)
raise ArgumentError if d == 0
@n, @b = n, d
end
end
// Scala
class Example(n: Int, d: Int) {
require(d != 0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment