worryg0d commented on issue #1759:
URL: 
https://github.com/apache/cassandra-gocql-driver/issues/1759#issuecomment-2500190247

   > passing a struct instead of interface would allow for new fields to be 
added in backwards compatible way without the users needing to type-check 
everything
   
   It sounds like a good idea to me. It will allow us to append new useful info 
(if any) without any breaking changes. Also, it will enable users to easily 
test their implementations of `HostSelectionPolicy` without needing to mock the 
`ExecutableQuery`.
   
   > is it possible to type cast the ExecutableQuery to *Query or *Batch now in 
the HostSelectionPolicy implementation?
   
   On the current codebase yes, it is.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to