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
<FromGitter> <mattrberry> Is there a way to iterate all methods of a class from a macro after other macros have run?
<FromGitter> <mattrberry> I guess I can also listen to `method_added`
<FromGitter> <Blacksmoke16> Probably put it in a finished hook?
<FromGitter> <jwaldrip:matrix.org> there is a `finished` macro
ur5us_ has quit [Ping timeout: 240 seconds]
<FromGitter> <mattrberry> Ah neat, thanks
<FromGitter> <mattrberry> What is the type of @type.methods ?
ur5us_ has joined #crystal-lang
<FromGitter> <mattrberry> I would have figured there'd be a Crystal::Macros::Method ASTNode
<FromGitter> <mattrberry> Ahh
<FromGitter> <mattrberry> Ty!
<FromGitter> <jwaldrip:matrix.org> Crystal has amazing docs ;-)
<FromGitter> <mattrberry> I did a ctrl-f for "method" and didn't look much further 😂
<FromGitter> <mattrberry> Well this is utter garbage :) https://play.crystal-lang.org/#/r/ckm4
<FromGitter> <mattrberry> Definitely won't work in special cases, and also not actually worth using :p
<FromGitter> <Blacksmoke16> yea, KISS and just define them yourself
<FromGitter> <mattrberry> Yeah for sure, just was curious what this would look like haha
<FromGitter> <Blacksmoke16> can clean it up a it
<FromGitter> <jrei:matrix.org> `property` is also a macro. This makes even less sense
<FromGitter> <Blacksmoke16> `method in @type.methods.select &.name.ends_with?('=')`
<FromGitter> <Blacksmoke16> maybe could just do like:
<FromGitter> <Blacksmoke16> ```previous_def ⏎ write``` [https://gitter.im/crystal-lang/crystal?at=61d8dc42f5a3947800f408c2]
<FromGitter> <mattrberry> > `property` is also a macro. This makes even less sense ⏎ ⏎ I didn't want to redefine the property macro, but rather to just append to it :p
<FromGitter> <mattrberry> > ``` ⏎ > previous_def ⏎ > write ⏎ > ``` ⏎ ... [https://gitter.im/crystal-lang/crystal?at=61d8ddd72a210c38c1b963dd]
<FromGitter> <skurhse> hello all
<FromGitter> <skurhse> my name is skurhse i introduced myself on the forums
<FromGitter> <skurhse> i had a very bad™️ experience on the unofficial discord and I am hoping to have a better experience here
<FromGitter> <skurhse> I would love to see gRPC as a first class citizen in crystal
<FromGitter> <skurhse> but the state of http atm is a little wat
<FromGitter> <skurhse> so I don't think I can do it independently
<FromGitter> <skurhse> I guess my first question would be is if Julien's impl is relevant anymore or if I am better off greenfielding
<FromGitter> <skurhse> and what is the current state of configurable transport
<FromGitter> <skurhse> if any
<FromGitter> <skurhse> @straight-shoota
ur5us_ has quit [Ping timeout: 240 seconds]
notzmv has joined #crystal-lang
<FromGitter> <skurhse> barring any help I will opt to my own fork
<FromGitter> <skurhse> but i'd like it to be part of the std lib if I can
<FromGitter> <skurhse> it appears that a few folks have attempted an http/2 impl in the past and never got it to stable
<FromGitter> <Blacksmoke16> if one of those implementations works well for you, then id just use that. otherwise, afaik, there hasn't been active dev on porting that (or other stuff from those issues) to the stdlib. Its deff an area that can be improved
<FromGitter> <Blacksmoke16> im not sure what the status of the redesign discussion is at either. Not something that can just be implemented w/o considering its impact the `HTTP::Client` and such as a whole
ur5us_ has joined #crystal-lang
Guest35 has joined #crystal-lang
Guest35 has left #crystal-lang [#crystal-lang]
mikko has quit [Quit: WeeChat 2.7.1]
mikko has joined #crystal-lang
ur5us_ has quit [Ping timeout: 240 seconds]
debayer9 has joined #crystal-lang
debayer94 has joined #crystal-lang
debayer9 has quit [Ping timeout: 256 seconds]
debayer94 is now known as debayer9
debayer9 has quit [Remote host closed the connection]
debayer9 has joined #crystal-lang
debayer9 has quit [Ping timeout: 240 seconds]
debayer9 has joined #crystal-lang
debayer9 has quit [Ping timeout: 240 seconds]
debayer9 has joined #crystal-lang
debayer9 has quit [Ping timeout: 256 seconds]
debayer9 has joined #crystal-lang
debayer9 has quit [Remote host closed the connection]
debayer9 has joined #crystal-lang
debayer9 has quit [Ping timeout: 240 seconds]
debayer9 has joined #crystal-lang
debayer9 has quit [Ping timeout: 240 seconds]
<Elouin> Hi, How do i append a string to a text file? I tried write with `mode="a+"`, but that doesnt seem to work(overwrites the content).
<FromGitter> <Blacksmoke16> `mode: "a+"` not `=`
<FromGitter> <Blacksmoke16> otherwise you're creating a local var, assigning `"a+"` to it and pass it as the next positional arg
brw has quit [Ping timeout: 250 seconds]
brw has joined #crystal-lang
<Elouin> Ahh, right, sry.
<Elouin> Long day. ^^'
<FromGitter> <Blacksmoke16> np
<Elouin> Thanks!
<FromGitter> <deiv> Hi, compiling crystal version 1.3.0 in debian testing/unstable, introduces the next error:
<FromGitter> <deiv> 1) Crystal::FFI::CallInterface .new sum struct Failure/Error: pointer_value.should eq 50
<FromGitter> <deiv> anyone knows about ?
<FromGitter> <deiv> running the compiler test suite, btw :D
<FromGitter> <deiv> I lost the build log sorry lol.... it expects 50 but the current value is 0
debayer9 has joined #crystal-lang
debayer9 has quit [Ping timeout: 256 seconds]
sagax has joined #crystal-lang