jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.1 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
vikaton has quit []
bcardiff has joined #crystal-lang
vikaton has joined #crystal-lang
havenwood has quit [Ping timeout: 264 seconds]
bcardiff has quit [Quit: Leaving.]
willlll has quit [Quit: willlll]
willlll has joined #crystal-lang
willlll has quit [Client Quit]
willlll has joined #crystal-lang
willlll has quit [Client Quit]
waterlink has joined #crystal-lang
waterlink1 has quit [Ping timeout: 250 seconds]
kulelu88 has quit [Quit: Leaving]
havenwood has joined #crystal-lang
fowl has quit [Excess Flood]
notfowl has joined #crystal-lang
willlll has joined #crystal-lang
waterlink has quit [Quit: Leaving.]
willlll has quit [Quit: willlll]
willlll has joined #crystal-lang
willlll has quit [Client Quit]
JBat has joined #crystal-lang
datanoise has joined #crystal-lang
willlll has joined #crystal-lang
willlll has quit [Client Quit]
ponga has joined #crystal-lang
_havenn has joined #crystal-lang
havenwood has quit [Ping timeout: 256 seconds]
ponga has quit [Remote host closed the connection]
willlll has joined #crystal-lang
JBat has quit [Quit: Computer has gone to sleep.]
ponga has joined #crystal-lang
ponga has quit [Quit: Leaving...]
unshadow has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
willlll has quit [Quit: willlll]
BlaXpirit has joined #crystal-lang
DerisiveLogic has quit [Ping timeout: 252 seconds]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
Ven has joined #crystal-lang
unshadow has joined #crystal-lang
JBat has joined #crystal-lang
<unshadow> What's 'T' ? I see some methods want's that as the input type
<BlaXpirit> unshadow, generic, see the very top of the page
<BlaXpirit> it's like "BufferedIO that deals with type T"
<unshadow> So, I can do BufferedIO(String) ? to deal specificly with string ?
<BlaXpirit> probably. i don't know what it actually does
<unshadow> K, thanks :)
<unshadow> When I try to do socket.write I get this issue : http://carc.in/#/r/51 , what's slice ?
<unshadow> Found it, nm
_havenn has quit [Ping timeout: 255 seconds]
havenwood has joined #crystal-lang
datanoise has quit [Ping timeout: 265 seconds]
n1ftyn8 has quit [Ping timeout: 276 seconds]
n1ftyn8 has joined #crystal-lang
<unshadow> Someone knows why when connecting to this: http://carc.in/#/r/5e using openssl s_client, I get an Error in SSL socket: Index out of bounds ?
datanoise has joined #crystal-lang
havenwood has quit []
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 250 seconds]
leafybasil has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
ponga has joined #crystal-lang
ponga has joined #crystal-lang
ponga has quit [Changing host]
ponga has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
waterlink has joined #crystal-lang
waterlink has quit [Ping timeout: 264 seconds]
waterlink has joined #crystal-lang
Ven has joined #crystal-lang
Dreamer3 has quit [Ping timeout: 245 seconds]
notfowl has quit [Excess Flood]
notfowl has joined #crystal-lang
unshadow has quit [Quit: leaving]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 252 seconds]
Dreamer3 has joined #crystal-lang
JBat has quit [Quit: Computer has gone to sleep.]
unshadow has joined #crystal-lang
unshadow has quit [Quit: leaving]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vikaton has quit [Quit: Connection closed for inactivity]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 250 seconds]
orliesaurus has joined #crystal-lang
orliesaurus has quit [Excess Flood]
orliesaurus has joined #crystal-lang
bcardiff has joined #crystal-lang
asterite has joined #crystal-lang
waterlink has quit [Read error: Connection reset by peer]
waterlink has joined #crystal-lang
asterite has quit [Client Quit]
BlaXpirit has joined #crystal-lang
DerisiveLogic has joined #crystal-lang
JBat has joined #crystal-lang
vikaton has joined #crystal-lang
unshadow has joined #crystal-lang
markhend has joined #crystal-lang
markhend has quit []
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 250 seconds]
ponga has quit [Quit: Connection closed for inactivity]
JBat has quit [Read error: Connection reset by peer]
datanoise has joined #crystal-lang
shama has joined #crystal-lang
<waterlink> >> class X; @hello = "world"; end
<DeBot> waterlink: # => nil - http://carc.in/#/r/6b
<waterlink> >> class X; @hello = "world"; def self.hello; @hello; end; end; X.hello
<DeBot> waterlink: in line 4: @instance_vars are not yet allowed in metaclasses: use @@class_vars instead - http://carc.in/#/r/6c
<unshadow> >> nil.is_a?(NIL)
<DeBot> unshadow: Error in line 4: undefined constant NIL (did you mean 'Nil'?) - http://carc.in/#/r/6d
<unshadow> >> nil.is_a?(Nil)
<DeBot> unshadow: # => true - http://carc.in/#/r/6e
<unshadow> >> nil.to_s.empty?
<DeBot> unshadow: # => true - http://carc.in/#/r/6f
<waterlink> >> nil.not_nil!
<DeBot> waterlink: Exception: Nil assertion failed - more at http://carc.in/#/r/6g
<unshadow> >> a = nil; a.not_nil!
<DeBot> unshadow: Exception: Nil assertion failed - more at http://carc.in/#/r/6h
<unshadow> >> a = nil; a.not_nil?
<DeBot> unshadow: Error in line 4: undefined method 'not_nil?' for Nil (did you mean 'not_nil!'?) - http://carc.in/#/r/6i
<jhass> >> a = [1, nil].sample; a.upcase if a.to_s.empty?
<DeBot> jhass: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6j
<jhass> >> a = [1, nil].sample; a.upcase if a.is_a? Nil
<DeBot> jhass: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6k
<jhass> :o
<jhass> >> a = [1, nil].sample; if a.is_a? Nil; a.upcase; end
<DeBot> jhass: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6l
<jhass> er, derp
<unshadow> makes sense lol
<jhass> >> a = [1, nil].sample; a.upcase unless a.to_s.empty?
<DeBot> jhass: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6m
<jhass> >> a = [1, nil].sample; a.upcase unless a.is_a? Nil
<DeBot> jhass: Error in line 4: undefined method 'upcase' for Int32 - http://carc.in/#/r/6n
<unshadow> no unless, remmber ?
<jhass> >> a = ["f", nil].sample; a.upcase unless a.is_a? Nil
<DeBot> jhass: # => "F" - http://carc.in/#/r/6o
<jhass> >> a = ["f", nil].sample; a.upcase unless a.nil?
<DeBot> jhass: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6p
<unshadow> issue 662 haha
<jhass> >> a = ["f", nil].sample; a.upcase unless Nil === a
<DeBot> jhass: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6q
<jhass> >> a = ["f", nil].sample; a.upcase unless nil === a
<DeBot> jhass: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6r
<jhass> so really just .is_a? and truthiness
<unshadow> a = ["f", nil].sample; a.upcase if != nil
<unshadow> >> a = ["f", nil].sample; a.upcase if != nil
<DeBot> unshadow: Syntax error in eval:4: unexpected token: != - http://carc.in/#/r/6s
<unshadow> >> a = ["f", nil].sample; a.upcase if a != nil
<DeBot> unshadow: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6t
<unshadow> yeha
<unshadow> thats what asterite said
<waterlink> >> class Nil; def upcase; nil; end; end; a = ["f", nil].sample; a.upcase
<DeBot> waterlink: Error in line 4: Nil is not a class, it's a struct - http://carc.in/#/r/6u
<waterlink> >> struct Nil; def upcase; nil; end; end; a = ["f", nil].sample; a.upcase
<DeBot> waterlink: # => nil - http://carc.in/#/r/6v
<unshadow> "the thing is == and != can be defined by you so the compiler can't really know if something equals nil then it's nil"
<crystal-gh> [crystal] asterite pushed 3 new commits to master: http://git.io/vTOoL
<crystal-gh> crystal/master e92a057 Ary Borenszweig: Allow tuples in libs
<crystal-gh> crystal/master 5e1f847 Ary Borenszweig: Correctly type/codegen var initializers for inherited generic classes
<crystal-gh> crystal/master 4898453 Ary Borenszweig: Fixed #665: can't use instance var initialize in generic class
DerisiveLogic has quit [Ping timeout: 272 seconds]
<unshadow> jhass, AUR package version update ? (for crystal-git)
<jhass> why? just rebuild it
<unshadow> I like that is shows that a new version is avalable hhah
<unshadow> Kidding ofcurse :) I'll rebuild
<unshadow> >> a = ["f", nil].sample; a.upcase unless a.to_s.empty?
<DeBot> unshadow: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6w
<unshadow> this is wierd though ...
<waterlink> unshadow: how can `.to_s.empty?` even remotely work here?
<waterlink> to_s.empty? will be checked at runtime
<waterlink> but compiler cuts you off with error at compile time
<unshadow> I'm still in ruby way of thinking, you are right...
<unshadow> >> a = ["f", nil].sample; a.upcase if a
<DeBot> unshadow: # => "F" - http://carc.in/#/r/6x
<unshadow> >> a = ["f", nil].sample; a.upcase if a.not_nil!
<DeBot> unshadow: Error in line 4: undefined method 'upcase' for Nil - http://carc.in/#/r/6y
<unshadow> >> a = ["f", nil].sample; a.upcase if a
<DeBot> unshadow: # => nil - http://carc.in/#/r/6z
<unshadow> >> a = ["f", nil].sample; a.to_s.upcase
<DeBot> unshadow: # => "F" - http://carc.in/#/r/70
broz has joined #crystal-lang
willlll has joined #crystal-lang
<unshadow> this is a better solution :) just to_s a
leafybas_ has joined #crystal-lang
<unshadow> >> "".upcase
<DeBot> unshadow: # => "" - http://carc.in/#/r/71
<travis-ci> manastech/crystal#2341 (master - 5e1f847 : Ary Borenszweig): The build was broken.
jtarchie has joined #crystal-lang
leafybasil has quit [Ping timeout: 240 seconds]
leafybas_ has quit [Ping timeout: 250 seconds]
willlll has quit [Quit: willlll]
willlll has joined #crystal-lang
willlll has quit [Client Quit]
Cidan has joined #crystal-lang
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
waterlink has quit [Ping timeout: 265 seconds]
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
willlll has joined #crystal-lang
waterlink has joined #crystal-lang
datanoise has quit [Ping timeout: 265 seconds]
datanoise has joined #crystal-lang
Excureo has joined #crystal-lang
leafybasil has joined #crystal-lang
Excureo has quit [Remote host closed the connection]
Excureo has joined #crystal-lang
Excureo has quit [Remote host closed the connection]
sandelius has joined #crystal-lang
<vikaton> whats .sample?
willlll has quit [Quit: willlll]
kulelu88 has joined #crystal-lang
<ddfreyne> vikaton: Returns a random element of the collection
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #crystal-lang
willlll has joined #crystal-lang
willlll has quit [Quit: willlll]
willlll has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vTscV
<crystal-gh> crystal/master 1572ff4 Ary Borenszweig: Fixed #547: String#to_i (and related) should raise on overflow/underflow. Also: implement to_i, to_i64, etc., in pure crystal, and added to_i? variants for getting nil on invalid values, as well as a version accepting a block.
<crystal-gh> crystal/master 458f808 Ary Borenszweig: Added base parameter to String#to_big_i
willlll has quit [Quit: willlll]
waterlink has quit [Ping timeout: 256 seconds]
willlll has joined #crystal-lang
<travis-ci> manastech/crystal#2342 (master - 458f808 : Ary Borenszweig): The build is still failing.
<vikaton> thanks ddfreyne
asterite has joined #crystal-lang
asterite has quit [Quit: Page closed]
DerisiveLogic has joined #crystal-lang
BlaXpirit has quit [Remote host closed the connection]
willlll has quit [Quit: willlll]
sferik has joined #crystal-lang
willlll has joined #crystal-lang
vikaton has quit []
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
vikaton has joined #crystal-lang