ruby / json

JSON implementation for Ruby
https://ruby.github.io/json
Other
673 stars 326 forks source link

Make OpenStruct support as optional #565

Closed hsbt closed 8 months ago

hsbt commented 8 months ago

see https://github.com/ruby/ostruct/blob/master/lib/ostruct.rb#L136

OpenStruct is not recommend to use with performance reason today. We should make OpenStruct support as optional.

Earlopain commented 8 months ago

Would this not warn anyways? The logging gem for example requires syslog in rescue like in this PR but even though the functionality is optional it still logs the message.

Edit: Sorry, I meant to put this here instead https://github.com/ruby/yaml/pull/28