<jhass>
yes, for more readable standard library docs
<jhass>
that's the main reason
<FromGitter>
<alex-lairan> Auto generated docs :)
Philpax_ has quit [Ping timeout: 250 seconds]
<FromGitter>
<alex-lairan> What is your tool ?
<jhass>
crystal doc
<FromGitter>
<alex-lairan> OMFG Awesome
<RX14>
yeah specifying return types is something i do quite a lot
<RX14>
although i wish crystal doc did basic type inference to tell return types if possible
steenuil has quit [Ping timeout: 250 seconds]
steenuil has joined #crystal-lang
<crystal-gh>
[crystal] TheLonelyGhost opened pull request #3150: Checks if cookies is empty before adding to header (master...empty-cookies-should-not-set-cookie-header) https://git.io/v6u1o
am__ has quit [Ping timeout: 276 seconds]
snsei has joined #crystal-lang
steenuil has quit [Ping timeout: 276 seconds]
steenuil has joined #crystal-lang
snsei has quit [Remote host closed the connection]
libman has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<FromGitter>
<sdogruyol> ha
Philpax_ has joined #crystal-lang
libman has quit [Quit: Leaving.]
ponga has quit [Quit: Connection closed for inactivity]
Philpax has joined #crystal-lang
Philpax_ has quit [Ping timeout: 250 seconds]
<FromGitter>
<crisward> Anyone have experience with crytsal-db / mysql?
<FromGitter>
<crisward> Trying to get data from a text field and it's returning a `Slice(UInt8)`
<FromGitter>
<crisward> not sure what that is or how to convert to text
<BlaXpirit>
crisward, are you sure it's a text field? is it unicode?
<tilpner>
crisward - Returning? Doesn't crystal-db allow you to choose the type via rs.read(Type)?
<tilpner>
(I've only used the sqlite3 version, perhaps there are differences)
<FromGitter>
<crisward> yes it's unicode
<BlaXpirit>
well worst case you can use String.new(bytes : Slice(UInt8), encoding : String)
<FromGitter>
<crisward> I'm using DB.mapping(), I set the type to string and it throws
<FromGitter>
<crisward> I'll try an implement your suggestion
<BlaXpirit>
crisward, i implied that it is suboptimal
<BlaXpirit>
havent worked with DBs in crystal, dont know a proper solution
<FromGitter>
<crisward> Ah, ok. Can't help thinking the driver should do this and I'm using it wrong.
<FromGitter>
<crisward> String.new works, no need to set encoding for UTF8 it would seem
<BlaXpirit>
hold up... when json contains an integer and I do .as_f, it doesn't let me???