greengriminal has quit [Quit: This computer has gone to sleep]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<codenoid> sup
<FromGitter>
<codenoid> when i use HTTP::Get, can i get total time of loaded response data ?
greengriminal has joined #crystal-lang
hightower2 has quit [Ping timeout: 240 seconds]
bjz has joined #crystal-lang
AckZ has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philpax has joined #crystal-lang
bjz has joined #crystal-lang
greengriminal has quit [Quit: Leaving]
onionhammer1 has quit [Ping timeout: 240 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<codenoid> anybody know how to sync our local folder with other computer via ssh/ sublime text, i've tried use https://github.com/tnhu/SimpleSync , but is not work
bjz has joined #crystal-lang
onionhammer1 has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
Disrecollection has joined #crystal-lang
<FromGitter>
<johnjansen> @codenoid RSync ???
_whitelogger has joined #crystal-lang
<FromGitter>
<codenoid> how ?, i cant found any tutorial about it :(
<hightower2>
Regarding extension of standard classes, well, how to do it then? My wish is exactly to add those additional methods to those classes, and if I go to subclass them (to extend my own classes rather than standard ones), I may run into the issue of not being able to subclass, like I ran into with struct Time
<oprypin>
why do you want to make Ranges comparable to Int32
<oprypin>
because we pick out one of the two types arbitrarily. it's unnatural.
<hightower2>
oprypin, actually, you are right, I don't need it. What I need actually is to make Int32=== Range behave the same as Range=== Int32, instead of invoking the default implementation of ===, which is ==, which in turn relies on <=>.
<hightower2>
But I can't seem to override === properly, and I keep getting the default one which calls ==
<oprypin>
hightower2, no but you don't actually need that. what do you need?
A124 has quit [Ping timeout: 240 seconds]
<hightower2>
I would like for Int=== Range to call Range.includes?( Int), but I can't find the right way to override ===
A124 has joined #crystal-lang
A124 has quit [Client Quit]
<oprypin>
Range === Int not good enough?
<hightower2>
I need the === operator to always do the right thing, without me having to check what's a and b in a===b
<hightower2>
But I may be onto the place where I need to do it
<FromGitter>
<straight-shoota> The case equality operator is by design only on-directional. It makes sens to ask "does an Int32 represent a member of a Range" but not "does a Range represent a member of an Int32". The naming as `===` is misleading as it suggests it would be some special case of the equality operator "==" which is by design bi-directional.
A124 has joined #crystal-lang
<hightower2>
Yes, I agree of course with the general statement
<hightower2>
Figured it out, had a mistake somewhere which was leading the code into going in using <=>, which wasn't needed
<hightower2>
Thanks for the discussion, it helped a lot.
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<krypton97> How can I use crystal as an interpreter?
<FromGitter>
<krypton97> I heard that it could be used this way as well
<Papierkorb>
You can't.
Qchmqs__ has joined #crystal-lang
<FromGitter>
<akzhan> you can retry repl (crystal-ice), or use llvm-jit, but both cases - you cant modify classes/structs etc.
hightower2 has quit [Ping timeout: 240 seconds]
<FromGitter>
<akzhan> And llvm-jitting not yet implemented.
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
<oprypin>
Nephos, that's how it's done though. i was even surprised it worked.
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 248 seconds]
<Nephos>
Oh
<Nephos>
There is no better way ?
<Nephos>
(I was surprise too)
<oprypin>
no better way
<oprypin>
well, you can drop one backslash but not both
<crystal-gh>
[crystal] MakeNowJust opened pull request #4652: Introduce '--show-backtrace' to show backtrace on compile error (master...feature/crystal/show-backtrace) https://git.io/vQRxK
fenicks has joined #crystal-lang
hightower2 has quit [Ping timeout: 248 seconds]
hightower2 has joined #crystal-lang
<FromGitter>
<rishavs> hi. is there a graphql client for crystal that i can use with Kemal?
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nouv has joined #crystal-lang
<crystal-gh>
[crystal] MakeNowJust opened pull request #4655: Fix '--release' flag place in man page's example (master...fix/man/crystal-build-release) https://git.io/vQ0Ur
<FromGitter>
<schoening> crystal 2.2 not working with kemal?
<FromGitter>
<schoening> I got a "discovered a bug, please create issue" message
<FromGitter>
<bew> 1) 22 ? or 2.23 ?
<FromGitter>
<bew> 1) 22 or 0.23 ? ><
Nouv_ has joined #crystal-lang
Nouv has quit [Ping timeout: 255 seconds]
<FromGitter>
<sdogruyol> @schoening it should work
<FromGitter>
<sdogruyol> @highttower2 yeah!
<FromGitter>
<schoening> 1) 3 I mean lol sorry
<FromGitter>
<sdogruyol> what's not working
<FromGitter>
<sdogruyol> i've successfully compiled Kemal and passed all the specs