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
ur5us has quit [Quit: Leaving]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #crystal-lang
jmdaemon has quit [Quit: ZNC 1.8.2 - https://znc.in]
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 quit [Quit: ZNC 1.8.2 - https://znc.in]
jmdaemon has joined #crystal-lang
Starfoxxes has quit [Ping timeout: 268 seconds]
jmdaemon has quit [Quit: ZNC 1.8.2 - https://znc.in]
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> <alex-kampa> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=631dc2afaa09177429041fb2]
<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> <alex-kampa> The Coding Style page https://crystal-lang.org/reference/1.5/conventions/coding_style.html does not seem to go into these details.
<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