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 [*.net *.split]
notzmv has quit [*.net *.split]
jmiven has quit [*.net *.split]
straight- has quit [*.net *.split]
sagax has quit [*.net *.split]
jmiven has joined #crystal-lang
straight-shoota has joined #crystal-lang
bastienleonard has quit [Ping timeout: 268 seconds]
_ht has joined #crystal-lang
bastienleonard has joined #crystal-lang
bastienleonard has quit [Ping timeout: 240 seconds]
avane has quit [Ping timeout: 276 seconds]
avane has joined #crystal-lang
Guest99 has joined #crystal-lang
Guest99 has quit [Client Quit]
sagax has joined #crystal-lang
bastienleonard has joined #crystal-lang
bastienleonard has quit [Ping timeout: 268 seconds]
notzmv has joined #crystal-lang
<FromGitter> <sahar.sedaghat_gitlab> What resources do we have, learning crystal-lang?
<FromGitter> <Blacksmoke16> https://crystal-lang.org/reference/1.4/index.html and https://crystal-lang.org/api/index.html would be a good place to start
_ht has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
hightower3 has quit [Ping timeout: 256 seconds]
<FromGitter> <isitaboat:matrix.org> likely a dumb question, but what's the equivalent of defined?(x) in crystal?
<FromGitter> <Blacksmoke16> idt there is one
<FromGitter> <Blacksmoke16> because it just wouldnt compile
<FromGitter> <isitaboat:matrix.org> hmm - so I want to use a template that can be used in different ways...guess I have to (XX | nil) it and set that variable anyway?
<FromGitter> <Blacksmoke16> got an example?
<FromGitter> <isitaboat:matrix.org> ya; kemal - rendering a template with a layout; I want to have stuff in the <head> change depending on where the layout is used. e.g. index page vs a view page. In ruby I'd do <% if defined?(item) %> then sutff..... ⏎ ⏎ I've "fixed" it by defining item = nil, then doing <% if item %> for the routes that have a real item it works, otherwise it does the else. Kinda "less clean" than defined?
<FromGitter> ... ...but is really obvious lol...... thanks!
<FromGitter> <Blacksmoke16> 👍
bastienleonard has joined #crystal-lang