Closed younker closed 9 years ago
Looking at the implementation of Queue#put
, none of the options are supported using string keys. I don't think it would make sense to support jid
using a string key but support only symbols for the rest of the options. Checking for string keys would also require extra overhead so I'm not sure it is worth adding.
Why do you need to pass the key as 'jid'
rather than :jid
?
Bear in mind that KW args (a ruby 2.0+ feature) only work with symbols, not strings. If Qless did not support 1.9 I believe we would use kw args here and we may do that someday. Supporting string keys now would cause problems if/when we ever wanted to use keyword arguments in the future.