Hello Everyone, I would like to open a discussion about using "assert" in some functions to promote a more defensive programming approach, ensuring that certain assumptions in our code are always validated.
The intention here is to propose a recommendation, not a strict rule. What are your thoughts on this? In the Java implementation repository, we have some code that follows this approach in Scala code [1]. I'm not very familiar with Scala, so I’m not sure if this is a common pattern, but I believe we could improve the quality of our Python code by adopting a similar approach. You can find a reference discussing this approach herehttps://ratfactor.com/cards/tiger-style [1] https://github.com/search?q=repo%3Aapache%2Ficeberg+assert++language%3AScala&type=code&l=Scala Best regards, André Anastácio