[#79440] [Ruby trunk Bug#13188] Reinitialize Ruby VM. — shyouhei@...
Issue #13188 has been updated by Shyouhei Urabe.
6 messages
2017/02/06
[#79441] Re: [Ruby trunk Bug#13188] Reinitialize Ruby VM.
— SASADA Koichi <ko1@...>
2017/02/06
On 2017/02/06 10:10, shyouhei@ruby-lang.org wrote:
[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>
Hi,
15 messages
2017/02/15
[#79541] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/15
Em 15-02-2017 05:05, Daniel Ferreira escreveu:
[#79543] Re: Immutable Strings vs Symbols
— Daniel Ferreira <subtileos@...>
2017/02/16
Hi Rodrigo,
[#79560] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/16
Em 15-02-2017 22:39, Daniel Ferreira escreveu:
[ruby-core:79725] [Ruby trunk Feature#13246] [REQUEST] Allow to make rb_compile_warn a hard error
From:
shatrov@...
Date:
2017-02-23 13:23:09 UTC
List:
ruby-core #79725
Issue #13246 has been reported by Kir Shatrov.
----------------------------------------
Feature #13246: [REQUEST] Allow to make rb_compile_warn a hard error
https://bugs.ruby-lang.org/issues/13246
* Author: Kir Shatrov
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
~~~ bash
$ cat dup.rb
puts({ one: 1, one: 2})
$ ruby dup.rb
dup.rb:1: warning: key :one is duplicated and overwritten on line 1
{:one=>2}
~~~
I suppose it was initially made a warning for the backward compatibility reasons.
In case of our project, we'd like to raise on all warnings like this one and stop allowing developers to introduce the code with warnings.
This is a common error that developers make, especially when they use TDD and the test output is quite large and it's not easy to notice the warning.
I propose that we provide an API to catch `rb_compile_warn` events and allow to raise on them, or for instance report them to the exception notification library if it's running in production.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>