Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby
by matharmin on Thursday June 20, 2019 @03:56PM
(#20236715)
I'm not sure how consistent it is with everything in Ruby, but parameters is technically the correct term here. A parameter is a variable definition, while an argument is the value that is passed to the parameter.
ArgumentError is still consistent with this definition (it's an error with the value you passed, not with the definition). However, params in a Rails controller does violate this definition.
Re:Open-sourcing Sorbet: a fast, powerful type checker for Ruby
by lloeki on Thursday June 20, 2019 @04:49PM
(#20237209)
Different levels of abstraction/concerns. Params in Rails come from HTTP params i.e the conceptual merge between GET query strings and POST body (e.g forms, but also JSON).
ArgumentError is still consistent with this definition (it's an error with the value you passed, not with the definition). However, params in a Rails controller does violate this definition.