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
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
ur5us has quit [Ping timeout: 250 seconds]
ua_ has joined #crystal-lang
ur5us has joined #crystal-lang
notzmv has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 264 seconds]
<Sankalp> What is the use of the `for` keyword in crystal?
<Elouin> there is a `for` keyword?
<FromGitter> <oprypin:matrix.org> sankalp: it is not a keyword. only a keyword in macros. a good syntax highlighting definition will only highlight it in macros https://github.com/pygments/pygments/blob/2f5722d2dc1290c9222452b87a47963e66698a8d/pygments/lexers/crystal.py#L353
<FromGitter> <oprypin:matrix.org> https://carc.in/#/r/dsrf no error see
<Sankalp> Ahhh yes! It's used in macros
<Sankalp> I had totally forgotten about macros
<Sankalp> Thank you @oprypin!
notzmv has joined #crystal-lang
yxhuvud has quit [Ping timeout: 260 seconds]
jmdaemon has quit [Ping timeout: 260 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 250 seconds]
Sankalp has quit [Ping timeout: 248 seconds]
Sankalp has joined #crystal-lang
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
yxhuvud has joined #crystal-lang
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
<FromGitter> <azurelmao> Is there a size-restricted queue in crystal or do I have to make my own with Deque?
<FromGitter> <Blacksmoke16> restricted in what case, like when you add something new and it's full, last item drops off?
<FromGitter> <azurelmao> exactly that
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
<FromGitter> <Blacksmoke16> nothing built in like that afaik
jmdaemon has joined #crystal-lang
_ht has joined #crystal-lang
<FromGitter> <RespiteSage> If you know the size at compile-time, it probably wouldn't be too hard to write a circular buffer using `StaticArray` under the hood.
<FromGitter> <Blacksmoke16> deque already implements a circular buffer
<FromGitter> <Blacksmoke16> but doesnt handle popping off extra values
_ht has quit [Quit: _ht]
ur5us has joined #crystal-lang
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 265 seconds]
sagax has quit [Excess Flood]
ur5us has quit [Ping timeout: 244 seconds]