Spec module is deff a lot more simplistic than rspec, IMO for the better most of the time
Are 'named' globals available? Saw very little discussion in the documentation and the compiler complains when the long-name versions of builtin globals are used e.g. $0 vs $PROGRAM_NAME and $? vs $CHILD_STATUS
crystal doesn't have global vars
at least that the user can define on their own. The only real global vars are defined via the compiler, which are like $~ and $1, $n representing regex matches
Makes sense, will need to add that to my list of things to find the Ruby equivalent for - I think i've figured out $? equiv vias Process.run()
Thanks for all of the help/advice
how to people normally debug the crystal compiler. Are there any instructions on how to do this.
confirmed amber redis websocket adapter patch is stable and works with multiple amber processes :D
From IRC (bridge bot)
<postmodern> is there an Enumerable method that finds the last occurance based on a block?
<jhass[m]> mmh, I don't think so but could maybe concort something with with_index and max?
you cannot traverse backwards with an Enumerable, but there's rindex for Indexable