<crystal-gh>
[crystal] straight-shoota opened pull request #5819: Extend documentation of Time and Time::Location APIs (master...jm/docs/time) https://git.io/vxJZX
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
<FromGitter>
<straight-shoota> Could be, but IMO doesn't need to
<FromGitter>
<straight-shoota> These are essentially just sanity checks to avoid accessing arbitrary files outside the tz database
<FromGitter>
<straight-shoota> In the IANA database, there are no zone IDs including a dot, but a custom database could at least theoretically use dots. I don't see real a reason to limit this.
<FromGitter>
<bew> oh ok
<FromGitter>
<bew> makes sense
<FromGitter>
<bew> it was soooo long to review your Time doc PR ^^
<FromGitter>
<straight-shoota> The behaviour is the same as in the Go impl
<FromGitter>
<plainas> Hey everyone... so the documentation is a bit sparse on compound types... What's the recomended way for extracting a type from (MyType | Nil) ?
<FromGitter>
<plainas> ... and fail in case of Nil
<FromGitter>
<laginha87> Look at the case statements it can be used to match the class
<FromGitter>
<straight-shoota> You don't need `case` if there is only one branch
<FromGitter>
<plainas> yeah, I had is_a? and is_nil? before. I was just wondering if there was a more idiomatic way. But they are quite similar anyway
<FromGitter>
<straight-shoota> There is also `.not_nil!`
<FromGitter>
<plainas> the api docs on that method are very brief, could you explain what it does?
<FromGitter>
<plainas> I figured it out. Extracts the non nil type or fails otherwise. This is exactly what I wanted. thank you
<FromGitter>
<straight-shoota> Exactly
rohitpaulk has joined #crystal-lang
<FromGitter>
<plainas> ok, nwebie question alert: how do I check if an element is present in an array?
rohitpaulk has quit [Ping timeout: 252 seconds]
<FromGitter>
<j8r> @plainas please, do a search first. You will find that's `.include "str"` for Ruby. If you do so, Crystal will tell you to use `.includes "str"`
<FromGitter>
<yxhuvud> Except the methods, both in ruby and crystal ends with `?`
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crystal-gh>
[crystal] RX14 closed pull request #5786: Fix boundary check in Time#add_span and move it to constructor (master...jm/fix/time-add-span-boundary) https://git.io/vAbjV
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ua has joined #crystal-lang
andrewzah has quit [Quit: ""]
qard has joined #crystal-lang
ua__ has quit [Ping timeout: 240 seconds]
qard has quit [Ping timeout: 246 seconds]
<FromGitter>
<aisrael> Any idea why I keep getting a `403 Forbidden` trying to submit an announcement to crystal-ann.com?
Ven`` has joined #crystal-lang
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven`` has joined #crystal-lang
rohitpaulk has joined #crystal-lang
Ven`` has quit [Client Quit]
Creatornator has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 246 seconds]
catalystkt has joined #crystal-lang
catalystkt has quit [Remote host closed the connection]
<crystal-gh>
[crystal] straight-shoota closed pull request #5772: Add release date of 0.24.1 to CHANGELOG (master...patch-1) https://git.io/vAQbL
hightower has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
notdaniel has quit [Quit: Leaving]
alex`` has quit [Quit: WeeChat 2.0.1]
<FromGitter>
<veelenga> @aisrael ⏎ ⏎ > Any idea why I keep getting a `403 Forbidden` trying to submit an announcement to crystal-ann.com? ⏎ ⏎ That was a bug. I've just deployed the latest (fixed) version. Looking forward for your announcements. [https://gitter.im/crystal-lang/crystal?at=5aa84d48e4d1c63604f808ca]
wojnar has joined #crystal-lang
wojnar has quit [Ping timeout: 246 seconds]
wojnar has joined #crystal-lang
wojnar_ has joined #crystal-lang
wojnar has quit [Ping timeout: 246 seconds]
wojnar_ has quit [Remote host closed the connection]