ur5us has quit [Quit: Leaving]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #crystal-lang
jmdaemon has joined #crystal-lang
jmdaemon has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 244 seconds]
jmdaemon has joined #crystal-lang
jmdaemon has joined #crystal-lang
Starfoxxes has quit [Ping timeout: 268 seconds]
Starfoxxes has joined #crystal-lang
<
FromGitter>
<grkek> New GraphQL toolkit just dropped
<
FromGitter>
<grkek> Check it out, thanks!
_ht has joined #crystal-lang
ua_ has quit [Read error: Connection reset by peer]
ua_ has joined #crystal-lang
<
FromGitter>
<alex-kampa> Hello, can anyone explain this weird behaviour:
<
FromGitter>
<jrei:matrix.org> That's because `u&(127).to_i32` is `u & (127).to_i32`. You can remove the parentheses. ⏎ ⏎ The left-hand type is kept.
<
FromGitter>
<alex-kampa> Ah so it should be ```(u&127).to_i32``` instead of ```u&(127).to_i32``` - @jrei:matrix.org
<
FromGitter>
<jrei:matrix.org> This is also valid: `u.&(127).to_i32`. ⏎ ⏎ To sumup: keep spaces to avoid confusion.
<
FromGitter>
<jrei:matrix.org> @alex-kampa yes, and to follow the common convention: `(u & 127).to_i32`
<
FromGitter>
<jrei:matrix.org> i.e idiomatic code
<
FromGitter>
<alex-kampa> Thanks for your help @jrei:matrix.org. Re "common convention" and "idiomatic code", is there a reference document for this?
<
FromGitter>
<jrei:matrix.org> `crystal tool format`
<
FromGitter>
<jrei:matrix.org> it will format appropriately with spaces around `&` for instance
Sankalp- has joined #crystal-lang
Sankalp has quit [Ping timeout: 248 seconds]
Sankalp- is now known as Sankalp
yxhuvud has quit [Remote host closed the connection]
yxhuvud has joined #crystal-lang
jmdaemon has joined #crystal-lang
ua_ has quit [Ping timeout: 264 seconds]
_ht has quit [Remote host closed the connection]
ua_ has joined #crystal-lang
ur5us has joined #crystal-lang
greenbigfrog has quit [Remote host closed the connection]
greenbigfrog has joined #crystal-lang
greenbigfrog has quit [Remote host closed the connection]
greenbigfrog has joined #crystal-lang