Hacker News new | ask | show | jobs
by Mystery-Machine 531 days ago
The author also forgot to mention that the new error output doesn't mix ` and ' anymore.

Ruby 3.3

> 'asd' + 1 (sitar-report):1:in `+': no implicit conversion ...

Ruby 3.4

> 'asd' + 1 (sitar-report):1:in 'String#+': no implicit conversion...

2 comments

This has bothered me for decades, why was this ever the case to begin with?
I'd presume it's the same motivation behind quotes in TeX (`foo' and ``bar'')—maybe typewriters didn't use to have true curly quotes, or something?

EDIT: https://en.wikipedia.org/wiki/Backtick#As_surrogate_of_apost... seems relevant

Is the stack trace in the section "Clearer exception backtraces" actually from 3.4? It has mixed backticks and single quotes.
Fixed! I grabbed that example from the bug tracker issue where the change was discussed and that wasn’t based on a version where the backtick change had been made.