ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
deavmi has joined #crystal-lang
<FromGitter> <HertzDevil> what's the difference between `Type#covariant?` and `Type#implements?`
<FromGitter> <HertzDevil> (in the compiler)
deavmi has quit [Ping timeout: 272 seconds]
deavmi has joined #crystal-lang
_whitelogger has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 245 seconds]
f1reflyylmao is now known as f1refly
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 260 seconds]
f1reflyylmao is now known as f1refly
_ht has joined #crystal-lang
fifr` has joined #crystal-lang
deavmi has quit [Ping timeout: 256 seconds]
deavmi has joined #crystal-lang
deavmi has quit [Ping timeout: 264 seconds]
deavmi has joined #crystal-lang
deavmi has quit [Quit: Eish! Load shedding.]
deavmi has joined #crystal-lang
hendursa1 has joined #crystal-lang
hendursaga has quit [Ping timeout: 268 seconds]
<FromGitter> <asterite> @HertzDevil I can't remember. Maybe they are the same, or they are slightly different. The easiest thing would be to make one call the other and see what specs fail. In any case, the `Type` type has too many methods and most of them are very confusing.
ua has quit [Ping timeout: 246 seconds]
ua has joined #crystal-lang
ua has quit [Ping timeout: 246 seconds]
ua has joined #crystal-lang
<FromGitter> <asterite> It's probably different for procs
baweaver has joined #crystal-lang
<FromGitter> <void-witch> this regex works perfectly in regex101, why does it not match anything in crystal? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=604bb2d095e23446e42e24c4]
<FromGitter> <Blacksmoke16> `\#`
<FromGitter> <Blacksmoke16> actually sec
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/ajc7 this works
<FromGitter> <Blacksmoke16> i would have thought passing in the enum member manually would have the same effect tho
<FromGitter> <void-witch> huh, really? that's weird
DTZUZU has quit [Quit: WeeChat 3.1]
<FromGitter> <Blacksmoke16> to be clear go to edit view, the `/m` apparently doesnt show up otherwise
drakonis has left #crystal-lang ["WeeChat 3.1"]
<FromGitter> <void-witch> why is it matching the whole string? it should only be matching a line
<FromGitter> <void-witch> (at least, that's what it does on regex101's pcre tester)
DTZUZU has joined #crystal-lang
<FromGitter> <oprypin:matrix.org> @void-witch: crystal has different meanings of flags. multiline is dotall+multiline for whatever reason
<FromGitter> <void-witch> so, how do i not do that?
<FromGitter> <oprypin:matrix.org> @void-witch: use `[^\n]` not `.`
<FromGitter> <void-witch> thanks! i also just solved it by changing the end to `.+?$`
<FromGitter> <oprypin:matrix.org> not the strongest solution
<FromGitter> <oprypin:matrix.org> here in particular it's fully reliable but not always applicable
<FromGitter> <void-witch> i actually ran into issues with it on the full text, your solution works perfectly tho. ty!
avane has quit [Ping timeout: 264 seconds]
avane has joined #crystal-lang
avane has quit [Read error: Connection timed out]
avane has joined #crystal-lang
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #crystal-lang
sorcus has quit [Ping timeout: 272 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
ua has quit [Ping timeout: 256 seconds]
_ht has quit [Remote host closed the connection]
ua has joined #crystal-lang
sorcus has joined #crystal-lang
<FromGitter> <MrSorcus> Hi.
<FromGitter> <MrSorcus> https://gist.github.com/MrSorcus/23d5c85b7ba2232b40832f0ce39d8625 ⏎ Here is a pseudo-code, where `parse_data` must check headers, before parsing other data... ⏎ But i think about using a `spec` from stdlib for this checks 😆 ⏎ https://gist.github.com/MrSorcus/8fd7584699c0d5951d9e3e68345f74aa - like this. ⏎ It's ok to use `spec` in that way? [https://gitter.im/c
<FromGitter> ... rystal-lang/crystal?at=604bf02c5d0bfb4e58a60caf]
<FromGitter> <js:nil.im> Are there any attempts to get Crystal into distributions? I noticed it's not even in Fedora.
<FromGitter> <Blacksmoke16> Not really. What should happen if they aren't equal?
<FromGitter> <Blacksmoke16> But is there a reason you can't use HTTP::Headers?
<FromGitter> <MrSorcus> > Not really. What should happen if they aren't equal? ⏎ ⏎ Then program must exit. It's a parser for html tables. 😆
<FromGitter> <Blacksmoke16> would be better off with what you're doing in the first example. Maybe even using `ArgumentError.new` or something
<FromGitter> <MrSorcus> Ok, got it. 😉
<FromGitter> <HertzDevil> @asterite ci is green except for alpine if i simply replace `covariant?` with `implements?` lol https://github.com/HertzDevil/crystal/commit/f2aa6661e76bee213c8bda168eedbd617255310c
<straight-shoota> o_o
<FromGitter> <MrSorcus> 😆
<FromGitter> <HertzDevil> the only two places that use `Type#covariant?` are when checking abstract def arg restrictions and when checking `Proc#call`'s arguments