00:30
f1reflyylmao has quit [Ping timeout: 272 seconds]
00:31
f1refly has joined #crystal-lang
00:53
chloekek has quit [Remote host closed the connection]
01:43
<
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?
01:45
<
FromGitter >
<tenebrousedge> you could use a regular expression
01:45
<
FromGitter >
<tenebrousedge> not sure there's anything in stdlib for that?
01:46
<
FromGitter >
<Blacksmoke16> delete via regex, yea
01:46
<
FromGitter >
<Blacksmoke16> but not to handle deleting this for you
01:53
<
avane >
alright, I'll look into that. thanks
03:11
f1reflyylmao has joined #crystal-lang
03:14
f1refly has quit [Ping timeout: 264 seconds]
04:02
avane has joined #crystal-lang
06:38
Elouin has quit [Quit: Ping timeout (120 seconds)]
06:38
Elouin has joined #crystal-lang
08:07
yukai has quit [Ping timeout: 246 seconds]
10:36
twistedpixels has quit [Ping timeout: 244 seconds]
10:37
twistedpixels has joined #crystal-lang
14:25
HumanG33k has quit [Remote host closed the connection]
14:27
HumanG33k has joined #crystal-lang
15:41
f1reflyylmao is now known as f1refly
15:52
duane has quit [Ping timeout: 246 seconds]
15:54
duane has joined #crystal-lang
16:28
johnny101 has quit [Ping timeout: 264 seconds]
16:37
johnny101 has joined #crystal-lang
17:08
<
FromGitter >
<3n-k1> shard.lock contains all the packages in the dependency graph, right?
17:08
<
FromGitter >
<Blacksmoke16> yes
17:08
<
FromGitter >
<3n-k1> awesome ty
17:08
<
FromGitter >
<Blacksmoke16> so if you run `shards install` again, it'll use those versions
17:10
chloekek has joined #crystal-lang
17:13
chloekek_ has joined #crystal-lang
17:14
chloekek has quit [Read error: Connection reset by peer]
17:19
ua has quit [Ping timeout: 272 seconds]
17:32
ua has joined #crystal-lang
17:48
dostoyevsky has quit [Ping timeout: 260 seconds]
18:00
andremedeiros has quit [Read error: Connection reset by peer]
18:02
andremedeiros has joined #crystal-lang
18:02
dostoyevsky has joined #crystal-lang
19:22
johnny101 has quit [Ping timeout: 264 seconds]
19:35
<
raz >
tenebrousedge: actually this reminds of an area that might be cool for contribution: shards itself
19:35
<
raz >
it's prob complicated, but would be cool if it was faster (e.g. parallelize the github fetching)
19:35
chloekek_ has left #crystal-lang ["Leaving"]
19:36
hightower2 has joined #crystal-lang
19:37
<
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.
19:39
<
FromGitter >
<Blacksmoke16> so it'll use the same obj on every call
19:42
<
FromGitter >
<Blacksmoke16> 🙈 nvm
19:47
<
FromGitter >
<3n-k1> does crystal have anything like a `final` keyword that prevents inheritance?
19:48
<
FromGitter >
<Blacksmoke16> no, but you can use a macro
19:49
<
FromGitter >
<3n-k1> good idea, thanks
19:54
<
FromGitter >
<j8r> prevent inheritance... you could use a struct if the class is immutable
19:54
<
FromGitter >
<j8r> a struct cannot be inherited by design
19:54
<
FromGitter >
<j8r> a struct can be mutable, but the main point is not being able to pass by reference around
19:54
<
FromGitter >
<Blacksmoke16> and to be clear that would prevent inheritance, but someone could still reopen the type and add/alter whatever they want
19:55
<
FromGitter >
<j8r> yep, and use a wrapper object and use delegation also
20:40
HumanG33k has quit [Quit: Leaving]
21:06
johnny101 has joined #crystal-lang
21:20
hightower2 has quit [Ping timeout: 240 seconds]
21:55
DTZUZU has quit [Remote host closed the connection]
21:55
DTZUZU has joined #crystal-lang
22:02
HumanG33k has joined #crystal-lang
22:02
HumanG33k has quit [Remote host closed the connection]
22:03
HumanG33k has joined #crystal-lang
22:35
coderobe has quit [Quit: Ping timeout (120 seconds)]
22:37
coderobe has joined #crystal-lang
23:00
Human_G33k has joined #crystal-lang
23:01
HumanG33k has quit [Read error: Connection reset by peer]
23:10
<
FromGitter >
<wontruefree> would crystal ever implement the flipfop operator? I dont know if I have ever used it in ruby
23:16
<
FromGitter >
<Blacksmoke16> The what?
23:22
<
FromGitter >
<wontruefree> I think it just creates an implicate variable
23:23
<
FromGitter >
<RespiteSage> Oh, that's awful.
23:24
<
FromGitter >
<3n-k1> that sounds more like someone who wrote a lot of bad code and invented an operator for it
23:25
<
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?
23:27
<
FromGitter >
<Blacksmoke16> imma go with a no on that one
23:27
<
FromGitter >
<Blacksmoke16> we only want the good Ruby features :p
23:52
<
FromGitter >
<wontruefree> lol
23:53
<
FromGitter >
<3n-k1> what good ruby features? this post brought to you by python gnag ⏎ /s