<FromGitter>
<stellarpower> I was just reading about the new interpreter mode. Excited to try it, as the old `icr` was a good effort but somewhat limited.
<FromGitter>
<stellarpower> It looks like I can take the same source code and compile it for debugging with lldb or similar traditional debugging tools, or runnit in interactive mode and get acess to internals similar to pry.
<FromGitter>
<stellarpower> If so, that's sick, almost a perfect synthesis of the best of both worlds.
<FromGitter>
<stellarpower> Well done anyone working on that, this is looking to be a seriously good step to making crystal my daily driver.
<FromGitter>
<stellarpower> I want to see if I can use this as my shell. If the interpreter can handle method_missing and o can overload operators to handle pipelines etc. Then this could be a serious contender
<FromGitter>
<Blacksmoke16> i think there's still quite a bit of work to do
<FromGitter>
<stellarpower> Nice work anyway
<FromGitter>
<stellarpower> I'm sure. But it looks promising so far.
<FromGitter>
<Blacksmoke16> for sure
<FromGitter>
<stellarpower> I'm always gonna like C++ or something more involved for highly performant or critical code, but this is a great language for that middle ground. The main thing that's stopped me using crystal more is number and maturity of shards
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 255 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 255 seconds]
_ht has joined #crystal-lang
ur5us has joined #crystal-lang
irc_user has quit [Quit: Connection closed for inactivity]
<FromGitter>
<RespiteSage> Even though the String representation is the same, `{ text: "Hello World" }` is a NamedTuple literal, whereas `{ :text => "Hello World" }` would be the Hash(Symbol, String) literal.
<FromGitter>
<RespiteSage> I can also write a proper StackOverflow answer if you like.
notzmv has quit [Ping timeout: 258 seconds]
<FromGitter>
<Blacksmoke16> Correct ^
<FromGitter>
<Blacksmoke16> a hash can have anything as its key, but a named tuple can only have symbol keys. The key difference is `:` versus `=>`
<FromGitter>
<Blacksmoke16> so the spec is correct given they're not equal as they're diff types
<FromGitter>
<RespiteSage> In the future, it might be easier to make sure you're using the right type to use the more explicit literal syntax: `Hash{ :a => 1 }`
<FromGitter>
<RespiteSage> I personally have almost no cases when I need to create a Hash literal, but I think I'd use that one if I did.
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp has joined #crystal-lang
notzmv has joined #crystal-lang
hightower3 has joined #crystal-lang
hightower4 has quit [Ping timeout: 250 seconds]
<FromGitter>
<Blacksmoke16> @stellarpower one thing i thought of for you, is you could use a custom prelude to allow defining your aliases globally to use between your personal scripts
<FromGitter>
<Blacksmoke16> then you can add `CRYSTAL_OPTS=--prelude=/path/to/my_prelude.cr`. thus any script you run will have access to those alises/custom methods
<FromGitter>
<Blacksmoke16> be easier than using a shard, while still keeping things DRY. Granted ofc if you only need them for personal use
irc_user has joined #crystal-lang
_ht has quit [Remote host closed the connection]
jmdaemon has joined #crystal-lang
<FromGitter>
<dorianmariefr> "your expected result is a NamedTuple, not a Hash" @RespiteSage thanks, makes sense, sounds like it should be equal to the hash though
<FromGitter>
<dorianmariefr> e.g. not strict equality, but superficial equality
<FromGitter>
<Blacksmoke16> maybe?
<FromGitter>
<Blacksmoke16> could create a forum thread for it. about adding an `==` overload for the opposite type
<FromGitter>
<dorianmariefr> Any idea what "Program received and didn't handle signal TRAP (5)" means? I don't understand why my program would receive a TRAP signal, also searching on Google finds messages related to using the debugger but I'm not using the debugger. Running with `crustal run` or `crystal build (then ./language)` works but not `crystal spec` here is a branch where you can reproduce it
<FromGitter>
<dorianmariefr> > could create a forum thread for it. about adding an `==` overload for the opposite type ⏎ ⏎ right, I will create a post
<FromGitter>
<Blacksmoke16> 👍 i could see how it could make sense, but also doubting if its a common enough comparison to make it worth it. So a thread is a good first step there
<FromGitter>
<Blacksmoke16> @dorianmariefr it segfaults for me, so yea...
<FromGitter>
<Blacksmoke16> are you just running `crystal spec`?
<FromGitter>
<Blacksmoke16> specifically defining stuff outside of an `it` and using it within. could cause some issues with the way specs are executed