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
greengriminal has quit [Quit: This computer has gone to sleep]
minus has left #crystal-lang ["WeeChat 1.9.1"]
greengriminal has joined #crystal-lang
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
<FromGitter> <jwaldrip> 1) 24.1 tagged? when can we expect an actual release?
<FromGitter> <faustinoaq> Yeah, I thought Core team was going to relase v0.24.1, Seems a bit weird `v0.24.1` and `0.24.1` tags
<RX14> we want to switch to v0.24.1 tag naming
<RX14> but we will have both for a few releases
greengriminal has quit [Quit: Leaving]
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
thews has quit [Ping timeout: 264 seconds]
thews has joined #crystal-lang
thews has quit [Changing host]
thews has joined #crystal-lang
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
astronavt has joined #crystal-lang
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
alex`` has joined #crystal-lang
greengriminal has joined #crystal-lang
astronavt has quit [Remote host closed the connection]
<FromGitter> <wontruefree> it seems like the interface to random has changed in 0.24.0
<FromGitter> <wontruefree> looks like Random.random_bytes no longer works
<FromGitter> <wontruefree> but you can use the underlying classes like Random::PCG32
<FromGitter> <wontruefree> is that the intended change?
<FromGitter> <wontruefree> I could not find the explications in the PR
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 272 seconds]
snsei has joined #crystal-lang
<FromGitter> <marksiemers> @wontruefree - Which version of crystal were you using where `Random.random_bytes` worked?
aroaminggeek[awa is now known as aroaminggeek
<FromGitter> <wontruefree> well I am looking at the 0.23.1 doc but that is not working now
<FromGitter> <wontruefree> I am working on a new project
alex`` has quit [Ping timeout: 248 seconds]
<FromGitter> <marksiemers> Are you looking at `SecureRandom` ?
<FromGitter> <marksiemers> It changed to `Random::Secure` for 0.24.0
<FromGitter> <marksiemers> In any case, if you can avoid 0.24.0, you should. It was a weird release. ⏎ Stick with 0.23.1 or use v0.24.1 when it is officially released (should be soon)
<FromGitter> <marksiemers> This is the relevant PR for the name change: https://github.com/crystal-lang/crystal/pull/4894
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
greengriminal has quit [Quit: Leaving]
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
snsei has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 265 seconds]
snsei has joined #crystal-lang
snsei has quit [Read error: Connection reset by peer]
aroaminggeek[awa is now known as aroaminggeek
hightower2 has joined #crystal-lang
rohitpaulk has joined #crystal-lang
p0p0pr37_ has joined #crystal-lang
p0p0pr37_ has joined #crystal-lang
p0p0pr37 has quit [Ping timeout: 256 seconds]
p0p0pr37_ is now known as p0p0pr37
gewo has quit [Quit: WeeChat 1.6]
gewo has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 265 seconds]
gewo has quit [Quit: WeeChat 1.6]
gewo has joined #crystal-lang
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
rohitpaulk has joined #crystal-lang
flaviodesousa has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
snsei has joined #crystal-lang
claudiuinberlin has joined #crystal-lang
aroaminggeek has quit [Quit: Textual IRC Client: www.textualapp.com]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
flaviodesousa has quit [Remote host closed the connection]
robacarp has joined #crystal-lang
alex`` has joined #crystal-lang
snsei has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 265 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
rohitpaulk has joined #crystal-lang
snsei has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
Ven` has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has quit [Ping timeout: 256 seconds]
robacarp has joined #crystal-lang
alex`` has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
Ven` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
Ven` has joined #crystal-lang
Ven` has quit [Client Quit]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 272 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
alex`` has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
Ven` has joined #crystal-lang
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
robacarp has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has quit [Ping timeout: 240 seconds]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
<crystal-gh> [crystal] jreinert opened pull request #5385: link all included libs statically if compiler is run with --static (master...static-link-attr) https://git.io/vbr4J
robacarp has quit [Read error: Connection reset by peer]
<jokke> RX14: ^
<jokke> RX14: i thought you might've forgotten about that one :P
<RX14> no I just started expanding the PR's scope until I had to leave
<RX14> lol
<jokke> :D
<jokke> think that's ok though? i didn't find any tests for LinkAttribute so i didn't write any new ones either...
<RX14> also thats probably a bad way to do it
<jokke> why do you think so?
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
<RX14> jokke, you're adding a bunch of messy work to get the static flag in there
<RX14> ignoring the fact that you do all the real work inside Program, where you have flags:
robacarp has joined #crystal-lang
<RX14> just edit lib_flags_posix and check has_flag?("static")
<jokke> ah
<jokke> true
<jokke> way better
<jokke> thanks
<FromGitter> <LuckyChicken91_twitter> what does .chr and .ord means in the full word? i guess .ord is ordinary or so but whats .chr?
<FromGitter> <bew> 'a'.ord is 97
<FromGitter> <bew> 1) chr os 'a'
<FromGitter> <bew> is*
<FromGitter> <LuckyChicken91_twitter> ..?
<FromGitter> <LuckyChicken91_twitter> i dont asked what it does
<FromGitter> <LuckyChicken91_twitter> "what does .chr and .ord means in the full word?"
<RX14> ord is just ord
<FromGitter> <bew> I don't understand you question then
<RX14> it's a mathematical concept
<FromGitter> <LuckyChicken91_twitter> weird
<RX14> .chr is character
<FromGitter> <LuckyChicken91_twitter> i thought it means ordinary
<RX14> well
<RX14> it's actually ordinal
<FromGitter> <LuckyChicken91_twitter> ooh ok and whats .chr then?
<RX14> an abbrevication of character
<RX14> abbreviation*
<RX14> .chr is a bad name to be honest
<RX14> i'd prefer to_char
robacarp has quit [Read error: Connection reset by peer]
<RX14> hmm
<FromGitter> <LuckyChicken91_twitter> oh ok yes it looks like its really a bad name
<jokke> RX14: hm your way wouldn't allow to override the global setting though...
<RX14> jokke, you might want to edit the pkg_config_flags function to check #{libname} and fall back to lib#{libname}
<RX14> jokke, no it wouldn't
<RX14> if you pass --static you want to get a static binary or an error
<jokke> i wonder if there's ever a use case...
<jokke> yeah
<RX14> keep it simple until someone has a usecase
<jokke> yup
<RX14> actually don't make the pkg-config change I recommended jokke
<Papierkorb> That'll explode for Qt for most people in the normal use-case, which also breaks Qt without further user intervention
<RX14> Papierkorb, ??
<Papierkorb> Qt is rarely outside of a commercial license statically linked. Also, dynamic plugins cease to function on at least Windows
<RX14> ok
<RX14> so what do you suggest?
<RX14> asking pkg-config for dynamic libraries even when we said to link statically?
<Papierkorb> Is that only for pkg-config?
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
<RX14> what do you mean Papierkorb?
<Papierkorb> Do you only enforce static libs with --static for pkg-config'd libs?
<RX14> yes the change is to pass --static to pkg-config when we pass --static to the crystal compiler
<RX14> no Papierkorb
<RX14> --static to the crystal compiler adds -static to the cc invocation
<RX14> at the start
robacarp has joined #crystal-lang
<Papierkorb> Never tried what happens when you pass -static to cc and some -l's only exist as dynamic
<RX14> it breaks
<RX14> well it fails
robacarp has quit [Read error: Connection reset by peer]
<RX14> as you would expect
robacarp has joined #crystal-lang
<RX14> I think we need a pkg-config name override for @[Link] though
robacarp has quit [Read error: Connection reset by peer]
<RX14> because pkg-config names have almost no relation to the actual lib names
<Papierkorb> Why not `@[Link(pkgconfig: "foo")]`
<RX14> that was what I meant Papierkorb
robacarp has joined #crystal-lang
<RX14> but more like
<RX14> @[Link(lib: "gc", pkgconfig: "bdw-gc")
<RX14> because a machine can work out THAT pkg-config name easilly can't it
Ven` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RX14> yaml has a pkg-config name of yaml-0.1
<RX14> which is wild
<Papierkorb> can't pkgconfig tell you the lib name, or is the lib: there a fallback?
<RX14> as a fallback
<RX14> for when pkg-config isn't around
<jokke> better?
<RX14> jokke, has_flag?
robacarp has quit [Read error: Connection reset by peer]
<jokke> oh
<jokke> didn't know there was that :D
<RX14> <RX14> just edit lib_flags_posix and check has_flag?("static")
<jokke> m)
<jokke> sorry
<jokke> we had the company christmas party yesterday
<jokke> i'm still a bit... off the rails
<RX14> good, we don't do rails in this channel
<jokke> :D
<Papierkorb> ?rails jokke
<DeBot_> Papierkorb: Nothing known about rails.
<Papierkorb> lul
<jokke> ok now
robacarp has joined #crystal-lang
<FromGitter> <LuckyChicken91_twitter> how can I convert a string to a char? im not sure if its to_c
<RX14> you can't
<FromGitter> <LuckyChicken91_twitter> huh
<RX14> because a string is essentially a list of chars
<RX14> it can contain more than one
Ven` has joined #crystal-lang
<RX14> which one do you want?
<RX14> do you assume your string has only one character in?
<FromGitter> <LuckyChicken91_twitter> yes
<RX14> then just check string.size == 1 (i.e. is has one char)
<RX14> then use string[0]
<RX14> indexing a string gets you a char
<FromGitter> <LuckyChicken91_twitter> so wait this means that every string with one letter is automaticly a Char right?
<RX14> no
<FromGitter> <LuckyChicken91_twitter> huh
<RX14> just like [1] != 1
<RX14> an array containing one isn't one is it?
<RX14> it contains one char
<RX14> it isn't a char
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
<jokke> looks like travis build is borken
<RX14> yup it is jokke
<RX14> travis broke ipv6 tests
<RX14> it's a huge pain
<jokke> oh ok
<jokke> that sucks
<RX14> we're probably switching to circleci linux
robacarp has joined #crystal-lang
<jokke> ok
<jokke> sdogruyol yeah indeed a nice question
<jokke> i wonder if there's not another way though
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
<FromGitter> <LuckyChicken91_twitter> how do i create a variable with an empty Char? I mean this: ⏎ ⏎ ```mychar = ''``` [https://gitter.im/crystal-lang/crystal?at=5a33de715355812e57dc0c59]
<FromGitter> <bew> an empty Char does not exist
<FromGitter> <bew> why would you need sth like this?
<Papierkorb> An empty char doesn't make sense. it's like wanting an empty number
rohitpaulk has joined #crystal-lang
<FromGitter> <marin117> hi everyone, anybody knows the best way to handle query parameters in kemal ⏎ To be precise what to do if at some point I expect query parameter but I am not sending it in every request
<FromGitter> <marin117> for example ⏎ username = env .params.query["username"] ⏎ but username will not be set in every request
<RX14> use ["username"]?
<RX14> and then you'll get nil if it's not there
<RX14> instead of an exception
<RX14> then you can do `if username; <do something with username>`
<FromGitter> <marin117> oh thank you :) couldn't remember that 😄
rohitpaulk has quit [Ping timeout: 264 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
Ven` has quit [Ping timeout: 272 seconds]
<FromGitter> <yxhuvud> in other contexts doing something like foo = something_that_can_be_nil || "" may sometimes make sense, but probably not for this case :)
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
<FromGitter> <marin117> probably :D i belive it is good enough for this context ;)
robacarp has joined #crystal-lang
<jokke> if you want a dafault value though i'd use env.params.query.fetch("username", "default")
<FromGitter> <bew> I think @yxhuvud method is prefered, but in the end you do as you like ;)
hightower2 has quit [Ping timeout: 256 seconds]
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
<crystal-gh> [crystal] wmoxam opened pull request #5387: Adds mkstemps for OpenBSD (master...add-missing-mkstemps-ref) https://git.io/vbrwB
<FromGitter> <LuckyChicken91_twitter> is there maybe some "known issue" that you just cant print out special characters like "\n", "\e" etc? At me he is just always printing the "\n" as it is. He is not printing a newline. When I look in the string as .inspect, i see that the "\n" is a "\\n". ⏎ So I tried `.gsub("\\\\", "\\").gsub(%{"}, "")` but this doesnt works. Looks like he is then just again replacing the "\n" with a "\\n"
<FromGitter> ... automaticly. I dont know why
robacarp has quit [Read error: Connection reset by peer]
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
<RX14> no, \n will get you a newline whebn in a string literal
<RX14> show your code
robacarp has joined #crystal-lang
robacarp has quit [Read error: Connection reset by peer]
rohitpaulk has joined #crystal-lang
robacarp has joined #crystal-lang
<FromGitter> <LuckyChicken91_twitter> the code is way too long to show
<FromGitter> <LuckyChicken91_twitter> i even tried doing to_s
robacarp has quit [Read error: Connection reset by peer]
<RX14> well, it does work
<RX14> so you're doing something wrong
<RX14> if you can't show code then I can't help
<FromGitter> <LuckyChicken91_twitter> i will try to reproduce!
rohitpaulk has quit [Ping timeout: 268 seconds]
robacarp has joined #crystal-lang
<FromGitter> <bew> well `print "\n".inspect` will print `"\n"` because for strings, #inspect allows you to see characters as it would be visible in actual code, but if you `print "\n"` it will make a newline
<FromGitter> <LuckyChicken91_twitter> i know
greengriminal has joined #crystal-lang
robacarp has quit [Quit: robacarp]
sz0 has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<crystal-gh> [crystal] ysbaddaden closed pull request #5385: link all included libs statically if compiler is run with --static (master...static-link-attr) https://git.io/vbr4J
<crystal-gh> [crystal] RX14 closed pull request #5385: link all included libs statically if compiler is run with --static (master...static-link-attr) https://git.io/vbr4J
<travis-ci> crystal-lang/crystal#0b7944b (master - link all included libs statically if compiler is run with --static (#5385)): The build is still failing. https://travis-ci.org/crystal-lang/crystal/builds/317005865
<DeBot_> https://github.com/crystal-lang/crystal/pull/5385 (link all included libs statically if compiler is run with --static)
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vbr1G
<crystal-gh> crystal/master a1e90f0 Wes: Adds mkstemps for OpenBSD
<travis-ci> crystal-lang/crystal#a1e90f0 (master - Adds mkstemps for OpenBSD): The build is still failing. https://travis-ci.org/crystal-lang/crystal/builds/317010238
<FromGitter> <marksiemers> @LuckyChicken91_twitter - If you make the code available in a repo and point to the line number, or provide a gist with the relevant code, we may be able to help.
<FromGitter> <LuckyChicken91_twitter> i already fixed it. Thanks anyways!
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
iamnotarobot has joined #crystal-lang
<iamnotarobot> hello! When I define a method. Can I somehow get the name of an method as a string?
greengriminal has quit [Quit: This computer has gone to sleep]
<oprypin> sure. `def some_method; end; some_string = "some_method"`
<FromGitter> <sdogruyol> do we have anywhere to lookup exception Crystal exception hierarchy?
<Papierkorb> The docs?
<Papierkorb> No, the class hierarchy in the docs
<FromGitter> <sdogruyol> oh ok thanks
claudiuinberlin has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
alex`` has quit [Ping timeout: 265 seconds]
rohitpaulk has quit [Ping timeout: 265 seconds]
iamnotarobot has quit [Quit: Page closed]
rohitpaulk has joined #crystal-lang
<FromGitter> <LuckyChicken91_twitter> are there speed/perfomance differences between @, @@ or normal variables
rohitpaulk has quit [Ping timeout: 255 seconds]
<Papierkorb> None you should care about
sz0 has joined #crystal-lang
rohitpaulk has joined #crystal-lang
greengriminal has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
<FromGitter> <LuckyChicken91_twitter> "declaring the type of an instance variable must be done at the class level" ⏎ im actually trying to declare the type in initialize of the class. Whats the "class level"?
sz0 has quit [Ping timeout: 240 seconds]
sz0 has joined #crystal-lang
aroaminggeek has joined #crystal-lang
alex`` has joined #crystal-lang
baweaver is now known as lemur
lemur is now known as baweaver
<oprypin> LuckyChicken91_twitter, inside a `class` definition but not inside something that's inside a `class` definition (like `def`)
rohitpaulk has quit [Ping timeout: 256 seconds]
aroaminggeek is now known as aroaminggeek[awa
<FromGitter> <elorest> So tags have been created for v0.24.1 but it hasn't been released yet... Are those tags RC's or the actual release?
aroaminggeek[awa is now known as aroaminggeek
<FromGitter> <elorest> shards see them regardless so will upgrade to them unless you're locked to 0.23.1
<Papierkorb> elorest, the CI broke while building the release tarballs or something
<Papierkorb> but the .1 is the actual release apart from that
<FromGitter> <elorest> Thanks.
<RX14> Papierkorb, no we're switching to a new way of creating deb/rpm packages
<RX14> and a problem was discovered in the new method after we tagged
<RX14> so it's a bit delayed
<RX14> its fixed now but noboday wanted to release on a friday...
<RX14> there's very likely to be a release on monday
<FromGitter> <unreadable> not sure if the right channel to post it, but gonna give it a try.. when I'm trying to compile with g++ I get an error like `cannot open shared object file`
<FromGitter> <unreadable> pretty strange cuz I'm using only the std oO
<FromGitter> <unreadable> the last thing I remember I did to get the issue was something like g++ file.cpp -I /include/ -o app -letc or something like that
<Papierkorb> ##c++
DTZUZO has joined #crystal-lang
<RX14> "not sure if the right channel"
<RX14> i mean it's definitely not on-topic
<FromGitter> <unreadable> Well, I've tried my luck
greengriminal has quit [Quit: This computer has gone to sleep]
<FromGitter> <paulcsmith> Is it possible to colorize text in a StringLiteral? https://play.crystal-lang.org/#/r/38we
<Papierkorb> You can add the ANSI sequence manually
<RX14> don't
<RX14> oh in macros
<RX14> yeah you're going to have to
<FromGitter> <paulcsmith> Mm interesting. Yeah I suppose I could do that. Is there a way to DRY things up by calling a macro from a macro? `"something #{red("important"}"` https://play.crystal-lang.org/#/r/38wh It seems not. I think using a `run` macro would probably be overkill for something like this, so I'm hoping there is something more lightweight
<RX14> yes you can call macros from macros
<RX14> kinda
<RX14> but not like that
sotrhraven has joined #crystal-lang
greengriminal has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter> <paulcsmith> @RX14 how do you do that? I've never been able to figure that out
aroaminggeek is now known as aroaminggeek[awa
<RX14> you have to make the macro expand to another macro
<RX14> i.e.
<RX14> you can call macros outside {{}} {% %}
<RX14> but not inside
<FromGitter> <paulcsmith> Oh yeah, I see. I'd need to do it inside for that I think. Thanks though :)
<FromGitter> <paulcsmith> for that = for colorizing a string literal
<FromGitter> <unreadable> turned out that my issue was caused by the gnu assembler which can be seen by running `as` in the console oO..reinstalling the `binutils` package solved the issue...
<FromGitter> <unreadable> but it's unlikely for google to index this chat messages in case someone runs into the same problem..
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
greengriminal has quit [Quit: Leaving]
sotrhraven has quit [Quit: sotrhraven]
<lvmbdv> Error in modes.cr:3: can't make class 'ModeSet' inherit generic struct 'Set(Char)'
<lvmbdv> But the docs said you can inherit generic structs when you specify an instance of them :o
<RX14> you can't inherit non-abstract structs
<RX14> it's just a thing
<lvmbdv> i see
<lvmbdv> thank you
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
alex`` has quit [Ping timeout: 265 seconds]