httprb / http

HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts
MIT License
3k stars 321 forks source link

Goodbye Hash rockets... #769

Closed ixti closed 10 months ago

ixti commented 11 months ago

I love Hash rockets. And think that it helps distinguish Hashes from keyword arguments, but:

  1. we should avoid using options Hashes in arguments
  2. lately I find it harder to deal with conditional logic of how Ruby differentiates keyword args from Hashes - so IMO it's better to move towards style that will imply we're using keyword arguments