asterite has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has joined #crystal-lang
kostya has joined #crystal-lang
dancinglightning has joined #crystal-lang
Excureo has joined #crystal-lang
CraigBuchek has joined #crystal-lang
dancinglightning has joined #crystal-lang
waj has joined #crystal-lang
<
CraigBuchek>
Can I specify the type of a parameter and give it a default in a method definition?
<
waj>
def foo(x = 123 : Int32)
<
CraigBuchek>
Can I specify a paramter that takes 2 different types, or do I need to overload?
<
CraigBuchek>
fed foo(x : Int32 | Class)
<
waj>
yes, that works too
dancinglightning has joined #crystal-lang
dancinglightning has joined #crystal-lang
waj has joined #crystal-lang
waj has joined #crystal-lang
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<
travis-ci>
[travis-ci] manastech/crystal#1249 (master - fa8838c : Ary Borenszweig): The build passed.
CraigBuchek has joined #crystal-lang
farleyknight has joined #crystal-lang
dancinglightning has joined #crystal-lang
asterite has joined #crystal-lang
asterite has joined #crystal-lang
asterite has joined #crystal-lang
asterite1 has joined #crystal-lang
<
asterite1>
I guess today would have been a good day to release version 0.1 :-P
asterite has joined #crystal-lang