ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
snsei has joined #crystal-lang
Creatornator has joined #crystal-lang
csk157 has joined #crystal-lang
snsei has quit [Remote host closed the connection]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk157 has quit [Ping timeout: 268 seconds]
Creatornator has joined #crystal-lang
<FromGitter> <jwaldrip> Oh boy... ran into my first crystal compiler error
<FromGitter> <jwaldrip> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a20a127232e79134df30ec7]
snsei has joined #crystal-lang
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
txdv has quit [Ping timeout: 268 seconds]
Ven`` has joined #crystal-lang
snsei has quit [Remote host closed the connection]
astronavt has joined #crystal-lang
snsei has joined #crystal-lang
astronavt has quit [Ping timeout: 255 seconds]
<FromGitter> <jwaldrip> Fixed, switched from Struct to Class
shelvacu has left #crystal-lang ["Leaving"]
shelvacu has joined #crystal-lang
<shelvacu> could you give the code that caused the bug?
txdv has joined #crystal-lang
snsei has quit [Remote host closed the connection]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk157 has joined #crystal-lang
Ven`` has joined #crystal-lang
csk157 has quit [Ping timeout: 240 seconds]
illyohs has joined #crystal-lang
sz0 has joined #crystal-lang
snsei has joined #crystal-lang
mooe has quit [Quit: Connection closed for inactivity]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 240 seconds]
illyohs has quit [Ping timeout: 248 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kosmonaut has quit [*.net *.split]
hightower3 has quit [*.net *.split]
saadq has quit [*.net *.split]
kosmonaut has joined #crystal-lang
hightower3 has joined #crystal-lang
saadq has joined #crystal-lang
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 258 seconds]
DTZUZO has quit [Read error: No route to host]
csk157 has joined #crystal-lang
csk157 has quit [Ping timeout: 240 seconds]
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 276 seconds]
csk157 has joined #crystal-lang
csk157 has quit [Ping timeout: 248 seconds]
Creatornator has joined #crystal-lang
<FromGitter> <bararchy> @sdogruyol I didn't noticed you fixed head to work with 0.24, thanks :) you just made me very happey
woodruffw has quit [Read error: Connection reset by peer]
astronavt has joined #crystal-lang
yashko has joined #crystal-lang
astronavt has quit [Ping timeout: 246 seconds]
csk157 has joined #crystal-lang
csk157 has quit [Ping timeout: 248 seconds]
woodruffw has joined #crystal-lang
woodruffw has quit [Changing host]
woodruffw has joined #crystal-lang
astronavt has joined #crystal-lang
yashko has quit [Quit: Page closed]
astronavt has quit [Ping timeout: 246 seconds]
csk157 has joined #crystal-lang
snsei has joined #crystal-lang
csk157 has quit [Ping timeout: 248 seconds]
<FromGitter> <elorest> Is it possible to define a variable inside of a macro for use within the macro... ⏎ ⏎ `{% my_var = "test" %}`
olbat has joined #crystal-lang
olbat has quit [Changing host]
olbat has joined #crystal-lang
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rohitpaulk has joined #crystal-lang
mbarbar has joined #crystal-lang
<FromGitter> <marksiemers> This is certainly a hack, but depending on your use case, you could do this: ⏎ ⏎ ```{% for my_var in ["test"] %}``` [https://gitter.im/crystal-lang/crystal?at=5a20fac63c69dd49170d339d]
<FromGitter> <elorest> Yeah I thought of that but don't love it. Think I'll just use constants.
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 252 seconds]
rohitpaulk has quit [Ping timeout: 250 seconds]
flaviodesousa has joined #crystal-lang
rohitpaulk has joined #crystal-lang
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 258 seconds]
Ven`` has joined #crystal-lang
rohitpaulk has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
ton31337 has left #crystal-lang [#crystal-lang]
csk157 has joined #crystal-lang
snsei has quit [Remote host closed the connection]
csk157 has quit [Ping timeout: 248 seconds]
Ven`` has quit [Read error: Connection reset by peer]
Ven` has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
Ven` has quit [Client Quit]
astronavt has joined #crystal-lang
<FromGitter> <yxhuvud> @elorest you can use %var = "test to get a unique name for your variable.
astronavt has quit [Ping timeout: 252 seconds]
Ven`` has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
rohitpaulk has joined #crystal-lang
csk157 has joined #crystal-lang
alex`` has joined #crystal-lang
csk157 has quit [Ping timeout: 240 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rohitpaulk has quit [Ping timeout: 240 seconds]
Papierkorb_ has joined #crystal-lang
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
jokke has quit [Quit: WeeChat 1.9]
jokke has joined #crystal-lang
jokke has quit [Quit: WeeChat 1.9]
jokke has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 264 seconds]
rohitpaulk has joined #crystal-lang
Ven`` has joined #crystal-lang
Ven`` has quit [Client Quit]
<crystal-gh> [crystal] MakeNowJust opened pull request #5336: Parser: fix the condition to decide var or call (master...fix/crystal/var-or-call-rule) https://git.io/vbqYe
astronavt has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #crystal-lang
astronavt has quit [Ping timeout: 246 seconds]
Ven`` has joined #crystal-lang
csk157 has joined #crystal-lang
csk157 has quit [Ping timeout: 268 seconds]
Ven`` has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #crystal-lang
<FromGitter> <sdogruyol> @elorest how's digitalocean supporting amber?
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 276 seconds]
<crystal-gh> [crystal] Sija opened pull request #5337: Use implicit #new in File.open (master...fix-5335) https://git.io/vbqCC
<oprypin> sdogruyol, it just gives you an OS, what's there to support?
<RX14> look at sponsors
hightower2 has joined #crystal-lang
<oprypin> oh in that sense. wow.
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 246 seconds]
<FromGitter> <umutuluer> Hi guys! Which ide do you use? I guess best choice is sublime
Creatornator has joined #crystal-lang
csk157 has joined #crystal-lang
crystal-lang699 has joined #crystal-lang
Creatornator has quit [Read error: Connection reset by peer]
crystal-lang699 has quit [Ping timeout: 260 seconds]
csk157 has quit [Ping timeout: 264 seconds]
vivus has joined #crystal-lang
<FromGitter> <bew> depends on what you need, sublime is definitely not an IDE, it's basically a text editor
<FromGitter> <bew> some uses VSCode, other use Atom, sublime, vim, etc..
<FromGitter> <bew> You can find the list of editors with crystal support in the wiki https://github.com/crystal-lang/crystal/wiki#editor-support
<FromGitter> <umutuluer> yes i know i checked that but im looking for the completely ide like phpstorm
<FromGitter> <bew> you won't find that for crystal until someone (you?) build it I think
<Papierkorb_> Most of the interesting features of fat IDEs can be found already in "editors" when you install plugins
<FromGitter> <bew> what are you looking for in an IDE for crystal @umutuluer ?
<FromGitter> <umutuluer> Actually the plugin for any jetbrains product is sufficient for me
<FromGitter> <bew> wut? what do you mean?
<FromGitter> <umutuluer> :D
<FromGitter> <umutuluer> so, im talking about https://github.com/intellij-crystal/intellij-crystal
<FromGitter> <umutuluer> but it is not developed actively
<FromGitter> <umutuluer> sorry it is developed i dont notice
<FromGitter> <bew> you can try it, and help him if you really want it
astronavt has joined #crystal-lang
<FromGitter> <umutuluer> i will try and share my experiences
astronavt has quit [Ping timeout: 255 seconds]
<FromGitter> <Rinkana> Personally i like vscode the best to program crystal in.
mbarbar has quit [Ping timeout: 246 seconds]
<FromGitter> <Rinkana> Btw, what's the simplest method of building a websocket server? Using kemal or is there a stdlib version?
<FromGitter> <bew> in the stdlib there is https://crystal-lang.org/api/0.23.1/HTTP/WebSocketHandler.html so you can probably use it the handle websocket requests
csk157 has joined #crystal-lang
csk157 has quit [Ping timeout: 248 seconds]
astronavt has joined #crystal-lang
[spoiler] has quit [Ping timeout: 240 seconds]
astronavt has quit [Ping timeout: 246 seconds]
flaviodesousa has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
[spoiler] has joined #crystal-lang
Poeticode is now known as P_C
P_C is now known as PiC
PiC is now known as P_C
<FromGitter> <extremety1989> @Rinkana that s what i use :D
csk157 has joined #crystal-lang
aroaminggeek has quit [Ping timeout: 260 seconds]
csk157 has quit [Ping timeout: 248 seconds]
Ven`` has joined #crystal-lang
hightower2 has quit [Ping timeout: 268 seconds]
<FromGitter> <claisne> is there a way to do a type safe case on an enum ?
<FromGitter> <claisne> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a2174df3c69dd49170fc42a]
<FromGitter> <claisne> players_second returns (Int32 | Nil)
rohitpaulk has quit [Ping timeout: 240 seconds]
vivus has quit [Quit: Leaving]
aroaminggeek has joined #crystal-lang
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astronavt has joined #crystal-lang
rohitpaulk has joined #crystal-lang
astronavt has quit [Ping timeout: 258 seconds]
<Papierkorb_> claisne, `else raise "..."`
<FromGitter> <claisne> yeah that's what I ended up with, thanks. sad that we don't infer correctly here
<Papierkorb_> You're basically calling random methods in there
<Papierkorb_> Which are also missing the leading-dot, which only works by chance of the whole method being part of the enum
<FromGitter> <claisne> yeah the snippet is not correct
<FromGitter> <claisne> I ended up with that ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a217d8dba39a53f1a0a4945]
Ven`` has joined #crystal-lang
Ven`` has quit [Client Quit]
vivus has joined #crystal-lang
<RX14> PRed my windows port
Ven`` has joined #crystal-lang
Ven`` has quit [Client Quit]
<FromGitter> <bararchy> #5339 hell yeha !!!!!
<DeBot_> https://github.com/crystal-lang/crystal/pull/5339 ([WIP] "hello world" windows port)
<FromGitter> <sdogruyol> @RX14 awesome
sz0 has joined #crystal-lang
DTZUZU has quit [Quit: WeeChat 1.9]
faustinoaq has quit [Ping timeout: 240 seconds]
faustinoaq has joined #crystal-lang
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 240 seconds]
<FromGitter> <fridgerator> woooow
<FromGitter> <picatz> That's really exciting news! I really appreciate the progress being made on the windows! ❤️
<RX14> Its very basic
<RX14> But the idea is that once its in master
<FromGitter> <aroaminggeek> I don't use windows but I know how that's Kind of A Big Deal. Good jorb @RX14!
<RX14> People will use it and it will snowball into lots of prs
<FromGitter> <aroaminggeek> You've created a monster
<FromGitter> <sdogruyol> what?
<FromGitter> <picatz> @RX14 while being basic, still awesome!
csk157 has joined #crystal-lang
Papierkorb_ has quit [Quit: Konversation terminated!]
<RX14> Party once it gets merged lol
<FromGitter> <picatz> 🎉 Will do!
<FromGitter> <sdogruyol> @RX14 I'll boot into my rusty windows install for this
<FromGitter> <sdogruyol> thank you
<faustinoaq> Oh yes! starting window support, Thank you RX14! 🎉 My Windows 10 + VS is ready 👍
csk157 has quit [Ping timeout: 255 seconds]
<RX14> [17:23] RX14: Don't know why you're so excited to run the best language on the worst OS :P
<FromGitter> <Rinkana> Great job RX14!
<FromGitter> <sdogruyol> lol
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<FromGitter> <picatz> In case anyone's interested, I made a lil 'command-line application to turn your network packets into rainbows: https://github.com/picatz/niji
<RX14> screenshots would make me understand what that means a lot lot more
<FromGitter> <picatz> True!
<RX14> a screenshot above the fold of the readme please!
<FromGitter> <picatz> Added a screenshot to the readme! :D
<RX14> heh
<FromGitter> <picatz> I think I'ma make a smaller/cropped version though.
<RX14> thats cool
<FromGitter> <picatz> Thanks! :D
<FromGitter> <picatz> I used the binding from libpcap I made a few weeks ago.
<FromGitter> <picatz> Like 50 lines of code.
<RX14> you realise we have Colorize
<RX14> so you don't have to put your escape codes into a string
<FromGitter> <picatz> I realize we have colorize. But, it was genuinely easier for me to just write that 😓 . I totally believe there's a better way to do this.
<RX14> yeah probably
<FromGitter> <picatz> but, it works! 😂
<RX14> you're probably right this is shorter since you can just smash in the 8 bit colour
<RX14> as Colorize worries about human readable names
<FromGitter> <picatz> I also plan on making a webapp version in the future.
<RX14> not numbers
<FromGitter> <picatz> Good to know 👍
<RX14> it's fantastically short
<RX14> shows you how good your library is
<FromGitter> <picatz> I really like Packetz!
<RX14> me too - from that interface
<FromGitter> <picatz> Like, I have more work to do with it. But, I read a lot on LibPcap
<FromGitter> <picatz> And I have been working to make it as easy as possible / don't use depreciated functions, ect.
<FromGitter> <picatz> Like, `pcap_lookupdev` is used all over the place in libpcap bindings. But it's depreciated. So I don't use it. :shipit:
<RX14> i have to say that's a well designed interface
<FromGitter> <picatz> ❤️ I appreciate that.
csk157 has joined #crystal-lang
<FromGitter> <picatz> Eventually I need to implement a library to do actual packet parsing, something like https://github.com/sdaubert/packetgen
<FromGitter> <picatz> Well, crafting and parsing. But, yeah.
<FromGitter> <picatz> Future crystal goals! 👍
csk157 has quit [Ping timeout: 240 seconds]
rohitpaulk has quit [Ping timeout: 240 seconds]
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 252 seconds]
<FromGitter> <elorest> @yxhuvud %var is a fresh variable which is guaranteed to be uniq but still doesn't exist within the macro scope. Does it?
<FromGitter> <elorest> @sdogruyol DO is generously giving us droplets.
<FromGitter> <bew> can you give an example of what you want to do @elorest ?
claudiuinberlin has joined #crystal-lang
<FromGitter> <bew> @elorest do you want a variable for the generated code (fresh var) or a macro variable, usable in `{% %}` and `{{ }}` ?
<FromGitter> <bew> iirc you gave an example `{% my_var = "test" %}` <= this should work, did you have issues with that?
<robacarp> is there a way to do a generic recursive alias? ` alias ResultNest(T) = Array(RoutedResult(T) | ResultNest(T))` produces a `expecting token '=', not '('` compiler error
<FromGitter> <elorest> I solved the problem without setting variables. But essentially I was trying to create a new variable so I could parse a variables cleaner. I ended up doing it in one line. ⏎ ⏎ /^{{path.split("/").map { |p| p.starts_with?(':') ? "(?<" + p.gsub(/\:/, "") + ">[^$\\/]+)" : p }.join("\\/").id}}$/
csk157 has joined #crystal-lang
<FromGitter> <elorest> Yeah `{% my_var = "test" %}` was what I tried first. It just says unknown macro variable.
<livcd> oh that's exciting news...crystal on windows ^^
<RX14> robacarp, you can't do a generic 8any* alias
<RX14> try just alias Foo(T) = Array(T)
<RX14> you'll get the same error
<robacarp> this seems to work though: ` alias ResultNest = Array(RoutedResult(T) | ResultNest)`
<RX14> that's not a generic alias
csk157 has quit [Ping timeout: 268 seconds]
<RX14> that's an alias of generics
<RX14> also that won't compile because T is undefined
<RX14> or - it shouldn't
<RX14> i think if you tried that in master it would break
<RX14> i assume you have that alias in a class which is generic over T
<RX14> and thats the only reason why it works
<robacarp> its probably given than it's in a generic class(T), why would it break in master?
<RX14> because it's a bug that that works in the first place
<RX14> the alias isn't "in" the class
rohitpaulk has joined #crystal-lang
<RX14> you can't do generic alias, it sucks, but that's the thing you need
<robacarp> the alias is defined in the class, why isn't it in the class?
<RX14> well what I meant is that it's inside the class's namespace
<RX14> but it's not inside the class's instance
<robacarp> ahh, I see what you mean
<RX14> it's a bug that Foo(T)::anything works
<RX14> a generic should only be the last type you refer to
<RX14> and in fact - reffering to your alias from outside probably wont work
alex`` has quit [Quit: WeeChat 1.9.1]
<RX14> it only happens to work because you're referring to it from inside the class
<RX14> without a preceeding namespace
<robacarp> I'm not sure I will be referring to it outside the class
<RX14> robacarp, yes but it's a bug either way
<robacarp> the recursive in this case will get flattened to an array
<RX14> the solution which makes sense is generic aliases
<robacarp> bah
csk157 has joined #crystal-lang
<robacarp> well, I guess I won't do it like that then
<RX14> you can macro it
<RX14> just make a macro which takes a type and expands to the type you want
<RX14> lol
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 255 seconds]
vivus has quit [Quit: Leaving]
csk157 has quit [Ping timeout: 240 seconds]
rohitpaulk has quit [Ping timeout: 248 seconds]
csk157 has joined #crystal-lang
P_C is now known as Poeticode
astronavt has joined #crystal-lang
jiriki has quit [Quit: WeeChat 1.0.1]
astronavt has quit [Ping timeout: 252 seconds]
asterite has quit [Ping timeout: 240 seconds]
[spoiler] has quit [Ping timeout: 240 seconds]
asterite has joined #crystal-lang
[spoiler] has joined #crystal-lang
illyohs has joined #crystal-lang
illyohs has quit [Remote host closed the connection]
<Yxhvd> generic aliases can be created in .23, but they don't work properly.
<Yxhvd> (basically, they won't expand the T and thus be useless)
astronavt has joined #crystal-lang
<RX14> no they can't
<RX14> you've never been able to do alias Foo(T) = Bar(T) at the top-level
<RX14> it's only a bug and it only works inside generic classes
<RX14> generic aliases are aliases which take a type parameter themselves
astronavt has quit [Ping timeout: 255 seconds]
<RX14> oh wow I have an approval on my windows port, guess I can merge it all right now lol
<Yxhvd> what I'm saying is that the compiler accepts it, but that the generated aliases are useless as they won't work.
<FromGitter> <sdogruyol> I'd say, just go for it @RX14
<RX14> no lol
<RX14> it's a WIP
<RX14> gc doesn't work
<FromGitter> <sdogruyol> haha
<RX14> and i need to get that other PR merged really
<FromGitter> <sdogruyol> yeah, I'm aware of that :P
<FromGitter> <sdogruyol> what's blocking #5333 ?
<DeBot_> https://github.com/crystal-lang/crystal/pull/5333 (Move File and IO::FileDescriptor's platform-specific parts to Crystal::System)
<RX14> people's time
<RX14> that it takes to review
csk157 has quit [Ping timeout: 268 seconds]
<RX14> come on its only been 3 days
<RX14> for a major stdlib refactor
<RX14> oh, you need to poke the crystal people about that blog post @sdogruyol
<RX14> s/crystal/manas
<FromGitter> <sdogruyol> ah yeah, I already did that twice..
<FromGitter> <sdogruyol> or more than twice :P
<FromGitter> <sdogruyol> @RX14 I just hope that we won't waste more than 3 months on that :P
<FromGitter> <sdogruyol> talking about #5333
<DeBot_> https://github.com/crystal-lang/crystal/pull/5333 (Move File and IO::FileDescriptor's platform-specific parts to Crystal::System)
<RX14> well I doubt it this time
<RX14> we've mostly got consensus on the architecture of the PR
<RX14> the rest is just tweaks
<FromGitter> <sdogruyol> yeah
<RX14> we still really need parellelism though
<FromGitter> <bararchy> RX14 what options did you use to compile an exe for windows ?
<FromGitter> <sdogruyol> @RX14 we don't have anyone working on that and probably won't have in near future
<RX14> yeahh
<FromGitter> <sdogruyol> haven't seen neither waj nor ggiraldez around
<RX14> last I heard was they needed to be stuck on a plane together with a laptop
<RX14> and told not to land until they finished
<RX14> actually that sounds a bit harsh out of context
<FromGitter> <sdogruyol> lol
<FromGitter> <bew> RX14 random on windows is... :perfect:
<FromGitter> <sdogruyol> hahah
<FromGitter> <Fryguy> HAHA
<RX14> oh yeah
<RX14> thats another reason not to merge it ahaha
<RX14> i forgot
<FromGitter> <sdogruyol> I never thought that he'd actually implement it from xkcd
<FromGitter> <sdogruyol> lol
<RX14> also the time is always 1070
<RX14> 1970*
<RX14> i mean if you're going to stub out a random generator might as well make an xkcd reference
<FromGitter> <bew> put the link in the PR!
<RX14> if they don't get it they don't deserve to review my PR!
<RX14> oops
<RX14> should be unless
<RX14> wait how does that work...
<FromGitter> <bew> there one or two more below
<RX14> because setting close on exec to be false is always supported
<RX14> since thats the default
<RX14> i j uyst got it the wrong way around for blocking
<FromGitter> <bew> lol, the guy who made a PR 's going "how does that work..." we're save guys!!
<FromGitter> <bew> safe*
<FromGitter> <schoening> I read some people complaining about crystal benchmarks because "fasthttp is incomplete" what does this mean?
<FromGitter> <Fryguy> would it be clearer to a reader to do `raise NotImplemented.new unless value == system_blocking?`
<RX14> fasthttp is go
<RX14> @Fryguy probably
<FromGitter> <Fryguy> basically saying "you can call this method but only if you set it to what is hardcoded
<RX14> oh wait no
<RX14> it's the close on exec which is wrong
<RX14> logic is hard
<RX14> oh wait no
<RX14> i'm wrong
<FromGitter> <bew> huh no
<FromGitter> <bew> ^^
<RX14> it should error
<RX14> technically
<FromGitter> <bew> what about raise everytime, as it's simply "not implemented" anyway?
<FromGitter> <Fryguy> what calls those setters anyway? they are private methods
<RX14> i was trying to avoid stubbing out the blocking call in IO::FileDescriptor
<RX14> so that IO::FileDescriptor.new(blocking: false) would raise
<FromGitter> <bew> oh ok, makes sense
<RX14> then just use blocking: true everywhere
<FromGitter> <Fryguy> oh nvm... I was looking at the one commit and not the whole thing :/
<FromGitter> <bew> good night to europeans, good day to others ;)
astronavt has joined #crystal-lang
alex`` has joined #crystal-lang
alex`` has quit [Client Quit]
alex`` has joined #crystal-lang
astronavt has quit [Ping timeout: 255 seconds]
<hightower3> How do I create any kind of data structure where I can collect and iterate over a series of Procs with different signatures?
<oprypin> huh
<hightower3> I need something like @x << &block
<oprypin> remove the `&` and done
<oprypin> actually, not sure... i dont remember
<RX14> well different signatures isn't really very useful
csk157 has joined #crystal-lang
<RX14> there must be some kind of fixed set you can call otherwise you couldn't possibly generate a method for it
<hightower3> Yeah, I was thinking of creating them via macros
csk157 has quit [Ping timeout: 268 seconds]
<RX14> i really want prime to be valid at the end of an identifier in crystal
<RX14> just if a name clases with anything just use name'
<RX14> problem solved
astronavt has joined #crystal-lang
astronavt has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
alex`` has quit [Quit: WeeChat 1.9.1]