<RX14> it's most likely an escaping issue in the string
<RX14> yup
<RX14> you need a %q string
<RX14> so that backslash escapes are processed properly
<RX14> it's literally because you pasted it into a string literal
<RX14> that \ chars needed to be doubly escaped
<RX14> or use %q
Rubi
@codenoid
HAHHAAAA
IT'S WORK
YOU SAVE MY LIFE RX14
wait, i''l write some blog post
From IRC (bridge bot)
@FromIRC
<RX14> what?
unreadable
@unreadable
mvp
Serdar Dogruyol - Sedo セド
@sdogruyol
Congrats @codenoid
Ghost
@ghost~55586c4815522ed4b3e08557
bmcginty, about your issue with libgen not removing common prefixes, I just had the same and fixed it: you need a rename rule, that remove the prefix from the fun name
From IRC (bridge bot)
@FromIRC
<alex``> How to get the API documentation for offline usage?
Hi guys, I hope you are all doing well! :) I need some help about the langage. Can we translate a String to Symbol ? My problem is: I get a list of file in a folder, and I want to call the function inside (that have the same name of the file).
thanks for the answer
John Jansen
@johnjansen
You can't dynamically create symbols. When you compile your program, each symbol gets assigned a unique number.
From IRC (bridge bot)
@FromIRC
<Papierkorb>@Jeremy-Pichon, there's no #send like in Ruby either. Use a case statement instead.
Jeremy Pichon
@Jeremy-Pichon
ok, thanks a lot :+1:
LuckyChicken
@LuckyChicken91_twitter
is there a method like .sub but that its adding something?
Ghost
@ghost~55586c4815522ed4b3e08557
do you have an example input/output?
From IRC (bridge bot)
@FromIRC
<oprypin>@LuckyChicken91_twitter, i noticed that last time you used sub(index, "") and you see it only as deleting something maybe? well obviously it doesnt have to be that way
LuckyChicken
@LuckyChicken91_twitter
okay
im still a bit conditined to ruby that you can do string[0] += "text" but unfortunately this doesnt work in crystal
John Jansen
@johnjansen
string[0] returns a char, not a string
LuckyChicken
@LuckyChicken91_twitter
i know
Ghost
@ghost~55586c4815522ed4b3e08557
If I understand correctly, you want to insert some text at a specific position of the string?
LuckyChicken
@LuckyChicken91_twitter
yes
excatly
Bar Hofesh
@bararchy
btw, why don't we have String#gsub!() ?
LuckyChicken
@LuckyChicken91_twitter
yes! why?
From IRC (bridge bot)
@FromIRC
<RX14> strings aren't mutable
Bar Hofesh
@bararchy
Oh
LuckyChicken
@LuckyChicken91_twitter
ouh
From IRC (bridge bot)
@FromIRC
<oprypin>@LuckyChicken91_twitter, so, like, when you decide what you actually want to do, maybe you could ask that, instead of "how can I do this weird thing from Ruby"
LuckyChicken
@LuckyChicken91_twitter
okay will do this next time
but im saying sometimes "because this is not working: Some code" so that people better understand what im meaning