<mps>
well, didn't tested it extensively, don't need to process big xmls
<mps>
actually worked in all small tests I made
<FromGitter>
<Blacksmoke16> 👍 good to hear
hightower4 has joined #crystal-lang
hightower3 has quit [Ping timeout: 260 seconds]
repo has joined #crystal-lang
Guest30 has joined #crystal-lang
Guest30 has quit [Client Quit]
Welog has quit [Read error: Connection reset by peer]
ur5us_ has joined #crystal-lang
ur5us_ has quit [Ping timeout: 265 seconds]
<FromGitter>
<nanobowers> kind of a general question about crystal APIs (vs ruby): where in ruby it might be common to return nil from a function when something failed - this seems like a pain Crystal from a usage standpoint. One could make the function return `Foo?` instead of `Foo`, but then the user would have to either handle the Nil case on their side using `.try` or otherwise. It seems the preferred approach is to raise
<FromGitter>
... Exceptions? Particular case in point: parsing a string to generate a Foo, but parsing fails. ⏎ ⏎ Relatedly, i'd be interested to buy a book about "The Crystal Way", b/c the more I spend time in Crystal I can see the Ruby way is not the right way for crystal. The documentation is great and a lot can be gleaned from reading s ... [https://gitter.im/crystal-lang/crystal?at=6141130a63dca818915d1d51]
ur5us_ has joined #crystal-lang
SamantazFox has quit [Ping timeout: 250 seconds]
SamantazFox has joined #crystal-lang
<FromGitter>
<Blacksmoke16> you'd still have to handle `nil` in ruby, it just doesn't warn you where it's possible it *could* be `nil`
<FromGitter>
<Blacksmoke16> Crystal way would be to have a `#parse` and `#parse?` method where the first raises and the latter returns nil