<echosystm>
its crazy how fast this language is progressing
<FromGitter>
<fridgerator> yeah, especially considering they dont have the backing of a large company
<echosystm>
as a go user, i really like the approach they're going to take to threads
<FromGitter>
<fridgerator> from what i've read they took a lot of inspiration from Go
<echosystm>
yeah
<echosystm>
if crystal becomes go with ruby syntax, i will be in love
<echosystm>
i still really struggle with go syntax etc.
<echosystm>
i can't just sit down and do stuff. i feel like the language is a barrier.
<FromGitter>
<fridgerator> how long have you been working with go?
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<fridgerator> i've only worked with it a very small amount
<kodo[m]>
go kinda annoys me because there is this paradigm of getting the value and potential error for every assignment
<kodo[m]>
foo, err := bar
<kodo[m]>
baz, err := blah
<FromGitter>
<fridgerator> yeah
<kodo[m]>
after awhile your code just looks like foo, _ := whatever heh
<FromGitter>
<fridgerator> lol
<kodo[m]>
i like how erlang handles that sort of thing the entire process [erlang speak for lightweight thread] crashes and the supervisor just restarts it, there isn't error handling at that level heh
<kodo[m]>
then you can say if this process dies like 3 times we might have a problem and do something about it, otherwise just keep going
bjz has joined #crystal-lang
echosystm has left #crystal-lang [#crystal-lang]
<kodo[m]>
What is null byte in crystal?
<kodo[m]>
`0_u8`?
snsei has joined #crystal-lang
domgetter has joined #crystal-lang
<domgetter>
What would be the idiomatic way of iterating over a range of numbers in reverse?
<domgetter>
Is #downto the way to go?
blort has joined #crystal-lang
blufor has quit [Remote host closed the connection]
snsei_ has joined #crystal-lang
snsei_ has quit [Remote host closed the connection]
snsei_ has quit [Remote host closed the connection]
<BlaXpirit>
kodo[m], yes
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
<Yxhuvud>
often the idiomatic way is to find something else to iterate over, though.
<crystal-gh>
[crystal] MakeNowJust opened pull request #4193: Flate: try to inflate even if @stream.avail_in is 0 (master...fix/flate/reader-believe-stream-end) https://git.io/vSky1
<FromGitter>
<Zhomart> Hi, is there equivalent to ruby's `Object#send`?
<Yxhuvud>
No.
<Yxhuvud>
some use cases can be simulated by macros, but far from all
<FromGitter>
<alexanderadam> Hm, this happened in the getter. I set the type setter now explicitly and the same code works.
snsei has joined #crystal-lang
kragniz has joined #crystal-lang
A124 has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
danielpclark has joined #crystal-lang
<FromGitter>
<Zhomart> Hi, I have a class that has `JSON.mapping` and `DB.mapping` (DB from crystal-lang/crystal-db). ⏎ How to bulk update all properties in this model. ⏎ ⏎ ```class User ⏎ JSON.mapping({name: String, age: Int32}) ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=58d6ca038e4b63533d621b5b]
<FromGitter>
<Zhomart> Had anybody have experience with it?
<kodo[m]>
TIl as?
<kodo[m]>
all those `?` methods always get me because I'm not used to them in ruby
A124 has quit [Ping timeout: 246 seconds]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
zsx has joined #crystal-lang
zsx has quit [Ping timeout: 258 seconds]
<FromGitter>
<crisward> `HTTP::Client.post_form` with multipart forms - any ideas anyone?
<RX14>
doesn't work
<RX14>
follow the examples on the multipart docs
sardaukar has joined #crystal-lang
<FromGitter>
<Zhomart> Hi, what do you think about allowing `JSON.mapping` to generate `def attributes : Hash` and `def attributes(attrs : Hash)`? `Hash` will have type by given parameters to `JSON.mapping`.
sardaukar has quit [Quit: Leaving]
<kodo[m]>
Anyone know if theres a way to refresh kemal views without stopping server?
<FromGitter>
<crisward> <kodo[m]> All views are compiled, so not really, sentry is fairly quick though...
greengriminal has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Bye]
FromGitter has joined #crystal-lang
BlaXpirit has joined #crystal-lang
<kodo[m]>
thnx
greengriminal has quit [Quit: This computer has gone to sleep]
carbonage has joined #crystal-lang
<kodo[m]>
Is there anything like pipe operator in crystal