General

Profile

mdaubert (Matthew Daubert)

  • Login: mdaubert
  • Email: mdaubert@gmail.com
  • Registered on: 08/01/2013
  • Last sign in: 02/22/2016

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

02/22/2016

05:22 PM Ruby Bug #12100: CSV converters fail when using single arg proc
Thanks for the explanation Madman, that's super helpful. So the actual bug is reproduced when passing a proc/non-lambda with any number of arguments but I agree, this would cause regressions in a case like this...
~~~ruby
parser.conv...
mdaubert (Matthew Daubert)
04:44 PM Ruby Bug #12100: CSV converters fail when using single arg proc
~~Upon further investigation it looks like this might actually stem from Symbol#to_proc returning a Proc with unspecified number of arguments, which makes sense, but I think the fix here is valid regardless.~~ What REcursive Madman said.... mdaubert (Matthew Daubert)
04:14 PM Ruby Bug #12100 (Rejected): CSV converters fail when using single arg proc
CSV#parse (and others) throw an ArgumentError when passing a single argument Proc as a converter because of a performance optimization check that assumes Proc#arity is always positive. Lambdas with one argument work fine as do Procs and ... mdaubert (Matthew Daubert)

Also available in: Atom