<shomodj> Hey, how do I get user id that is running the program from crystal?
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
shomodj, doesn't look like crystal binds in lib'c getuid, but you can add it yourself
```lib Lib; fun getuid() : LibC::Int; end``` something like that
is there a crystal equivalent to ruby's String#swapcase ?
hmm also i guess it's by design that there's no String#to_sym method?
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]
postmodern: Yes, symbols are always known at compile time. No dynamic creation of new ones are possible.
<shomodj> thanks postmodern, will give it a try
ua__ has quit [Ping timeout: 260 seconds]
ua_ has joined #crystal-lang
<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)]