ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
_whitelogger has joined #crystal-lang
jmdaemon has quit [Ping timeout: 246 seconds]
Sankalp has joined #crystal-lang
Sankalp has left #crystal-lang [#crystal-lang]
Sankalp has joined #crystal-lang
<Sankalp> Hi Crystal community!
<Sankalp> I have a small question about a method in Enumerable class
<Sankalp> Is there a reason why something like this does not result in a compilation error: ["hello", "world"].includes?(1)
<Sankalp> Because obviously Int32 and String types are not the same, so it will always result in false
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp has joined #crystal-lang
Sankalp has quit [Ping timeout: 276 seconds]
Sankalp has joined #crystal-lang
sorcus has quit [Quit: WeeChat 3.5]
sorcus has joined #crystal-lang
Sankalp has quit [Remote host closed the connection]
<FromGitter> <oprypin:matrix.org> Sankalp, https://github.com/crystal-lang/crystal/pull/8893 has a lot of related discussion
<FromGitter> <oprypin:matrix.org> for this particular example: i can make a new type that will respond as equal to strings and so it would be possible to have it respond true to `includes?`
Sankalp has joined #crystal-lang
Sankalp has quit [Remote host closed the connection]
Sankalp has joined #crystal-lang
Sankalp has quit [Remote host closed the connection]
brw0 has joined #crystal-lang
brw has quit [Read error: Connection reset by peer]
brw0 is now known as brw
Sankalp has joined #crystal-lang
Sankalp has left #crystal-lang [#crystal-lang]
Sankalp has joined #crystal-lang
Sankalp has quit []
jmdaemon has joined #crystal-lang