<FromGitter>
<skurhse> this way I have to manually edit a yaml file
<FromGitter>
<skurhse> which makes me sad
<FromGitter>
<Blacksmoke16> :shrug: oh well
<FromGitter>
<skurhse> oh wait i can use yq
<FromGitter>
<skurhse> or oq wink wink
<FromGitter>
<mattrberry> Is it possible to look up methods by their name at runtime?
<FromGitter>
<Blacksmoke16> no
<FromGitter>
<Blacksmoke16> not unless you do something yourself
<FromGitter>
<mattrberry> Sounds good. I was debating making a macro that builds a hash from name to method, but makes more sense just to keep it simple for now in that case
<FromGitter>
<mattrberry> Thanks
<FromGitter>
<Blacksmoke16> using a macro to generate a case on a string arg and all the related method could work
<FromGitter>
<Blacksmoke16> downside of that is the return type would be a union of *all* the methods
<FromGitter>
<Blacksmoke16> 😅 haha, yea by default things are JSON serialized, so can use a response obj to bypass that
analogsalad has joined #crystal-lang
sorcus has quit [Quit: WeeChat 3.4]
sorcus has joined #crystal-lang
Welog- has joined #crystal-lang
oprypin has quit [*.net *.split]
DeBot has quit [*.net *.split]
jhass has quit [*.net *.split]
FromGitter has quit [*.net *.split]
Elouin has quit [*.net *.split]
rymiel has quit [*.net *.split]
Welog has quit [*.net *.split]
maxpowa has quit [*.net *.split]
antoszka has quit [*.net *.split]
olbat has quit [*.net *.split]
frojnd has quit [*.net *.split]
[R] has quit [*.net *.split]
kevinsjoberg has quit [*.net *.split]
notzmv has quit [*.net *.split]
xiamx has quit [*.net *.split]
jhass[m] has quit [*.net *.split]
spuun has quit [*.net *.split]
analogsalad has quit [*.net *.split]
ua__ has quit [*.net *.split]
SamantazFox has quit [*.net *.split]
Vexatos has quit [*.net *.split]
wolfshappen has quit [*.net *.split]
greenbigfrog has quit [*.net *.split]
dannyAAM has quit [*.net *.split]
adam12 has quit [*.net *.split]
riza has quit [*.net *.split]
raz has quit [*.net *.split]
kiwiroy has quit [*.net *.split]
pusewic|away_ has quit [*.net *.split]
peer has quit [*.net *.split]
Stephie has quit [*.net *.split]
antoszka-r has quit [*.net *.split]
jrayhawk has quit [*.net *.split]
dom96 has quit [*.net *.split]
Flipez has quit [*.net *.split]
mattt2 has quit [*.net *.split]
fifr[m] has quit [*.net *.split]
xybre has quit [*.net *.split]
HumanG33k has quit [*.net *.split]
pixel has quit [*.net *.split]
sorcus has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
mookie has quit [*.net *.split]
repo has quit [*.net *.split]
sagax has quit [*.net *.split]
Liothen has quit [*.net *.split]
f1refly has quit [*.net *.split]
void09 has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
lanodan has quit [*.net *.split]
avane has quit [*.net *.split]
oprypin_ has joined #crystal-lang
maxpowa has joined #crystal-lang
jhass has joined #crystal-lang
frojnd1 has joined #crystal-lang
ua__ has joined #crystal-lang
Vexatos has joined #crystal-lang
f1refly has joined #crystal-lang
xiamx has joined #crystal-lang
jhass[m] has joined #crystal-lang
void09 has joined #crystal-lang
adam12 has joined #crystal-lang
fifr[m] has joined #crystal-lang
wolfshappen has joined #crystal-lang
greenbigfrog has joined #crystal-lang
[R] has joined #crystal-lang
dannyAAM has joined #crystal-lang
kevinsjoberg has joined #crystal-lang
kiwiroy has joined #crystal-lang
spuun has joined #crystal-lang
raz has joined #crystal-lang
riza has joined #crystal-lang
peer has joined #crystal-lang
Stephie has joined #crystal-lang
notzmv has joined #crystal-lang
Elouin has joined #crystal-lang
rymiel_ has joined #crystal-lang
sagax has joined #crystal-lang
sorcus has joined #crystal-lang
SamantazFox has joined #crystal-lang
Liothen has joined #crystal-lang
yxhuvud has joined #crystal-lang
antoszka has joined #crystal-lang
analogsalad has joined #crystal-lang
FromGitter has joined #crystal-lang
pixel has joined #crystal-lang
olbat__ has joined #crystal-lang
pusewic|away_ has joined #crystal-lang
HumanG33k has joined #crystal-lang
antoszka-r has joined #crystal-lang
jrayhawk has joined #crystal-lang
mattt2 has joined #crystal-lang
lanodan has joined #crystal-lang
xybre has joined #crystal-lang
mookie has joined #crystal-lang
repo has joined #crystal-lang
markmarkmark has joined #crystal-lang
dom96 has joined #crystal-lang
Flipez has joined #crystal-lang
avane has joined #crystal-lang
Welog- has quit [Remote host closed the connection]
Welog has joined #crystal-lang
<FromGitter>
<jfontan> I have a variable that can be some type or nil. I make sure is not nil at some point. How can I tell the compiler is not nil? I'm using `.as(type)` but maybe there is another way. Here's the piece of code doing this: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=61df39ad6d9ba23328bb369b]
<FromGitter>
<Blacksmoke16> those are all method calls fwiw
<FromGitter>
<rishavs> 😅 Yeah, thats the struggle. I am actually trying to add a bunch of transformations to an input string and doing it the oops way felt weird
<FromGitter>
<Blacksmoke16> string methods return the new string, so wouldnt be too bad
<FromGitter>
<jfontan> maybe you can create a class that contains an int and methods that modify its value and return self