Hacker News new | ask | show | jobs
by yogthos 2539 days ago
I'm saying that there is no way to know what all the keys in the map are going to be up front, or what are all the types these keys can have.

For example, there is middleware for parsing our request params into a :params key. There's another piece of middleware that parses the values of these keys. So, you may or may not have a :params key, and the types inside the params can be absolutely anything. Then you could just have completely separate middleware that might add something like a CSRF token to the request map. And so forth. Your only real option here is to treat the entire structure as Any type.

If you still don't understand the problem, I really don't know how else to explain this.