nevi-me commented on pull request #8608: URL: https://github.com/apache/arrow/pull/8608#issuecomment-723437224
> I have a question related to why do we use a `Box<>` instead of just putting it into the stack, but other parts of the code have that, and thus makes sense to keep it as is. We need some indirection to break the potential infinite recursion ```rust error[E0072]: recursive type `datatypes::Field` has infinite size --> arrow\src\datatypes.rs:188:1 | 188 | pub struct Field { | ^^^^^^^^^^^^^^^^ recursive type has infinite size 189 | name: String, 190 | data_type: DataType, | ------------------- recursive without indirection | = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `datatypes::Field` representable ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org