jhass changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.35.1 | 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
f1reflyylmao has quit [Ping timeout: 272 seconds]
f1refly has joined #crystal-lang
chloekek has quit [Remote host closed the connection]
<avane> Hi all, I have a string which contains ANSI escape codes. e.g. `\e[36;1mtest`. is there a convenient way of stripping the string of these ANSI escape codes?
<FromGitter> <tenebrousedge> you could use a regular expression
<FromGitter> <tenebrousedge> not sure there's anything in stdlib for that?
<FromGitter> <Blacksmoke16> delete via regex, yea
<FromGitter> <Blacksmoke16> but not to handle deleting this for you
<avane> alright, I'll look into that. thanks
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 264 seconds]
avane has quit [Quit: ZNC - https://znc.in]
avane has joined #crystal-lang
Elouin has quit [Quit: Ping timeout (120 seconds)]
Elouin has joined #crystal-lang
yukai has quit [Ping timeout: 246 seconds]
twistedpixels has quit [Ping timeout: 244 seconds]
twistedpixels has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
f1reflyylmao is now known as f1refly
duane has quit [Ping timeout: 246 seconds]
duane has joined #crystal-lang
johnny101 has quit [Ping timeout: 264 seconds]
johnny101 has joined #crystal-lang
<FromGitter> <3n-k1> shard.lock contains all the packages in the dependency graph, right?
<FromGitter> <Blacksmoke16> yes
<FromGitter> <3n-k1> awesome ty
<FromGitter> <Blacksmoke16> so if you run `shards install` again, it'll use those versions
chloekek has joined #crystal-lang
chloekek_ has joined #crystal-lang
chloekek has quit [Read error: Connection reset by peer]
ua has quit [Ping timeout: 272 seconds]
ua has joined #crystal-lang
dostoyevsky has quit [Ping timeout: 260 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #crystal-lang
dostoyevsky has joined #crystal-lang
johnny101 has quit [Ping timeout: 264 seconds]
<raz> tenebrousedge: actually this reminds of an area that might be cool for contribution: shards itself
<raz> it's prob complicated, but would be cool if it was faster (e.g. parallelize the github fetching)
chloekek_ has left #crystal-lang ["Leaving"]
hightower2 has joined #crystal-lang
<hightower2> Hey @wontruefree, should that Singleton.new return a singleton? Since it's not overriden, I'd assume that .new would return a new object.
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/9ymi need to do this i think
<FromGitter> <Blacksmoke16> so it'll use the same obj on every call
<hightower2> Isn't your result identical to the original paste? https://play.crystal-lang.org/#/r/9ymg and https://play.crystal-lang.org/#/r/9ymi
<FromGitter> <Blacksmoke16> 🙈 nvm
<FromGitter> <3n-k1> does crystal have anything like a `final` keyword that prevents inheritance?
<FromGitter> <Blacksmoke16> no, but you can use a macro
<FromGitter> <3n-k1> good idea, thanks
<FromGitter> <j8r> prevent inheritance... you could use a struct if the class is immutable
<FromGitter> <j8r> a struct cannot be inherited by design
<FromGitter> <j8r> a struct can be mutable, but the main point is not being able to pass by reference around
<FromGitter> <Blacksmoke16> and to be clear that would prevent inheritance, but someone could still reopen the type and add/alter whatever they want
<FromGitter> <j8r> yep, and use a wrapper object and use delegation also
HumanG33k has quit [Quit: Leaving]
johnny101 has joined #crystal-lang
hightower2 has quit [Ping timeout: 240 seconds]
DTZUZU has quit [Remote host closed the connection]
DTZUZU has joined #crystal-lang
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
coderobe has quit [Quit: Ping timeout (120 seconds)]
coderobe has joined #crystal-lang
Human_G33k has joined #crystal-lang
HumanG33k has quit [Read error: Connection reset by peer]
<FromGitter> <wontruefree> would crystal ever implement the flipfop operator? I dont know if I have ever used it in ruby
<FromGitter> <Blacksmoke16> The what?
<FromGitter> <wontruefree> I think it just creates an implicate variable
<FromGitter> <RespiteSage> Oh, that's awful.
<FromGitter> <3n-k1> that sounds more like someone who wrote a lot of bad code and invented an operator for it
<FromGitter> <RespiteSage> So, in a loop, `condition_one..condition_two` evaluates `false` on every loop until `condition_one == true` and then evaluates `true` on every loop until `condition_two` is true, after which it evaluates to `false` again?
<FromGitter> <Blacksmoke16> imma go with a no on that one
<FromGitter> <Blacksmoke16> we only want the good Ruby features :p
<FromGitter> <wontruefree> lol
<FromGitter> <3n-k1> what good ruby features? this post brought to you by python gnag ⏎ /s