Created
May 3, 2019 17:43
-
-
Save vladfaust/9c25bde45d7a6834d77b6aa62b0827a4 to your computer and use it in GitHub Desktop.
Sorbet is cool, but polished Crystal is better
This file contains 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
class A | |
def sum(a : Int, b : Int) : Int | |
a + b | |
end | |
end | |
A.new.sum("foo", 42) # Compilation-time error, `a` is not Int32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment