From: "nobu (Nobuyoshi Nakada)" Date: 2022-06-15T03:23:03+00:00 Subject: [ruby-core:108923] [Ruby master Feature#16495] Inconsistent quotes in error messages Issue #16495 has been updated by nobu (Nobuyoshi Nakada). zverok (Victor Shepelev) wrote in #note-12: > Because error messages are by their nature something you frequently want to communicate quickly and inline? > Here are some examples of backtick breaking communication: https://gist.github.com/zverok/a4fcacab3dc06d9d7585c82cad8a8dc6 Why don't you use double- or triple-backticks? > Ugh, do you know why am I having ``undefined local variable or method `foo' for main:Object?``.. I expected it to work for `Logger`. ---------------------------------------- Feature #16495: Inconsistent quotes in error messages https://bugs.ruby-lang.org/issues/16495#change-98008 * 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/ Unsubscribe: