<FromGitter>
<shomodj> Hey, how do I get user id that is running the program from crystal?
<postmodern>
so how do you handle recursive block expansion? I'm porting some Ruby code which defines Set Operator classes which are initialized with an Enumerable(String) and define #each(&block : (String) ->), but crystal is complaining about how this can lead to infinite inlining
<postmodern>
shomodj, doesn't look like crystal binds in lib'c getuid, but you can add it yourself
<postmodern>
```lib Lib; fun getuid() : LibC::Int; end``` something like that
<postmodern>
is there a crystal equivalent to ruby's String#swapcase ?
<postmodern>
hmm also i guess it's by design that there's no String#to_sym method?
<postmodern>
i guess i could convert this code to use an Enum, but i have this code which infers the default language code from the $LANG env variable, which means it potentially might return a language my Enum doesn't support
postmodern has quit [Quit: Leaving]
<yxhuvud>
postmodern: Yes, symbols are always known at compile time. No dynamic creation of new ones are possible.
<FromGitter>
<shomodj> thanks postmodern, will give it a try
ua__ has quit [Ping timeout: 260 seconds]
ua_ has joined #crystal-lang
<FromGitter>
<Blacksmoke16> would like `System::User.find_by(name: System::User.username).id` work? Not super straightforward tho
Elouin has quit [Quit: Ping timeout (120 seconds)]