From: "ivoanjo (Ivo Anjo) via ruby-core" Date: 2024-01-03T13:28:04+00:00 Subject: [ruby-core:115993] [Ruby master Feature#16495] Inconsistent quotes in error messages Issue #16495 has been updated by ivoanjo (Ivo Anjo). matz (Yukihiro Matsumoto) wrote in #note-7: > It was something cultural. I admit nowadays very few people use backquote as a left-hand quote, but it used to be. I also admit consistent quotes are easier for our eyes when using recent major fonts. But changing those quotes may affect existing log parsers. We have to estimate how big is the influence of the changes. > > Matz. On the topic of impacting the ecosystem, there have been quite a few changes to how exceptions have been displayed recently: * https://bugs.ruby-lang.org/issues/17930 * https://bugs.ruby-lang.org/issues/18564 and even more being discussed https://bugs.ruby-lang.org/issues/19117 . Overall the impact on the ecosystem seemed quite small, and the gain in usability was nice. So changing the `` ` `` to a `'` doesn't seem like it would be worse than any of those changes. ---------------------------------------- Feature #16495: Inconsistent quotes in error messages https://bugs.ruby-lang.org/issues/16495#change-105958 * Author: Kolano (Kenneth Kolano) * Status: Open * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) ---------------------------------------- Error messages use inconsistent pairs of quotes, for instance: ``` -e:1:in `
': undefined local variable or method `foo' for main:Object (NameError) ``` where a back tick is used on the left-hand side, and a single quote is used on the right. The same quotes should be used on either side of the elements being quoted. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/