<FromGitter>
<bararchy> lokking at the backtrace it fails at `rs.read(String)`
_whitelogger has joined #crystal-lang
<crystal-gh>
[crystal] RX14 opened pull request #4517: Format multi-line braces blocks using do/end (master...feature/formatter-do/end) https://git.io/vHVfi
<RX14>
looks like you aren't reading the schema correctly
<RX14>
you probably use read() too many times or for the wrong datatypes
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rohitpaulk has joined #crystal-lang
unshadow has joined #crystal-lang
snsei has joined #crystal-lang
unshadow has quit [Quit: leaving]
<FromGitter>
<akzhan> may be implement something like DB.mapping macro?
<FromGitter>
<bararchy> I'll use something else then
<FromGitter>
<akzhan> simply add mapping to crystal-mysql?
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RX14>
@akzhan mapping uses read() under the hood
<RX14>
but yes the converters probably need to be updated
<FromGitter>
<akzhan> @RX14 yes, of course. i simply mention aboutt mapping that’s more robust way.
rohitpaulk has joined #crystal-lang
pduncan has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 246 seconds]
dannyAAM has quit [Ping timeout: 258 seconds]
rohitpaulk has joined #crystal-lang
dannyAAM has joined #crystal-lang
Philpax_ has quit [Ping timeout: 260 seconds]
snsei has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 240 seconds]
LastWhisper____ has joined #crystal-lang
rohitpaulk has joined #crystal-lang
wontruefree has joined #crystal-lang
Renich has joined #crystal-lang
wontruefree has quit [Ping timeout: 246 seconds]
rohitpaulk has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #crystal-lang
Renich has quit [Quit: Renich]
rohitpaulk has quit [Ping timeout: 255 seconds]
Renich has joined #crystal-lang
<FromGitter>
<elorest> What is the state of the official Docker image? I notice it has it been updated for two months but it claims to be an automated build.
<FromGitter>
<akzhan> no new version release for approx. two months
<RX14>
i think possibly a new release is coming soon
<FromGitter>
<akzhan> Extended unicode support just in the middle. But yes, I want to new version be released asap.
<FromGitter>
<akzhan> there a lot of bug fixes landed.
<FromGitter>
<bcardiff> @elorest the docker images are updated on release (using /Dockerfile.release) . But docker hub is unable to build the /Dockerfile to have a head version.
<Winty>
hey guys. why in this code: https://play.crystal-lang.org/#/r/24y7 line 24 creates new var instead of calling Foos method while it prefers Foos function method over global function?
<FromGitter>
<bcardiff> I think it is missleading. It should not compile since the `bar = `is creating a variable inside the block. Please, submit an issue @Winty .
greengriminal has joined #crystal-lang
greengriminal has quit [Client Quit]
<FromGitter>
<bcardiff> A workaround is either use a different variable name, or call the setter`itself.bar = "FooBar"`if that is what you want.
<Winty>
itself works but i think if i yield using with it should always prefer methods of the yielded class
<Winty>
thats the reason why im yielding using with. so i don't have to type receiver for every call
<FromGitter>
<bcardiff> it won't pick the setter. that's for sure. But it is missleading that the second call to getter resolves to the variable, but the first one doesn't. Since the variable will hide the getter, that snippet should refuse to compile with a "read before write variable"
<oprypin>
took me a while to get what bcardiff was saying, but i agree
<FromGitter>
<elorest> @akzhan Ok thanks. I could have sworn 0.22.0 only came out a month ago.
<FromGitter>
<bew> @bcardiff I don't get why the code shouldn't compile and give a "read before write variable" kind of error
<FromGitter>
<bew> The first `puts bar` calls the getter, and the second refers to the variable.. I agree it'd not obvious when you read the block, but I don't see how we could prevent that use
<FromGitter>
<bcardiff> It's true, there is no reason. I was being to strict. There is no reason to change that behavior. (I thought it was not allowed, hence my suggestion)
duckqlz has quit [Ping timeout: 258 seconds]
duckqlz has joined #crystal-lang
Renich has quit [Quit: Renich]
duckqlz has quit [Remote host closed the connection]
z64 has quit [Quit: WeeChat 1.7]
<FromGitter>
<asterite> We should probably remove `with ... yield` too, it adds very little when one can simply pass a block argument and make explicit calls on that object
Winty has quit [Quit: Page closed]
<oprypin>
oh yes
<FromGitter>
<bew> Oh no
<FromGitter>
<akzhan> It seems that I need to understand how LLVM works. Is there a quick way to understand how to replace many alloca with one?)
Kug3lis has quit [Ping timeout: 255 seconds]
<FromGitter>
<akzhan> Looks like we need to define structure type for the constant expression on the fly
Kug3lis has joined #crystal-lang
Val has left #crystal-lang [#crystal-lang]
<FromGitter>
<bigtunacan> How do you read/write cookies in Kemal on both server side and client side?
<FromGitter>
<akzhan> Kemal response object is http server response from crystal I suppose. Just ⏎ ⏎ response.cookies << HTTP::Cookie.new("foo", "bar")
<Yxhuvud>
asterite: I really disagree on removing with yield as it make it easier to write less repetetive DSLs.