2 ms·
Thanks for spotting this. The parts of code were written at different times. I'll fix this to standardize on :key => value form, as I want symbols to be clearly
by metacircu1ar 2y ago
Thanks for spotting this. The parts of code were written at different times. I'll fix this to standardize on :key => value form, as I want symbols to be clearly distinguishable both on call sites and in the method table.
- alehlopeh 2y agoNot that it necessarily applies here but any time I see hash rockets in a PR it just screams “an llm wrote this”
- metacircu1ar 2y agoI write some ruby code for my job to automate some API testing stuff, where I use hash rockets exclusively.
- caseyohara 2y agoYou should know that using the hash rocket syntax has not been idiomatic Ruby since the new hash syntax was introduced in 2012. Unless your keys are not symbols, there’s no reason to use hash rockets.