You can wrap them too. There’s no harm to allow no wrapping when there isn’t ambiguity so the few builtin types allows this. In general your type may want a different behavior so that’s not there by default. No one stops you from implementing it for your type though if that’s the only way your type should be written.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How can the Julia language write a structure to a file and read that structure from the file? | 5 | 222 | May 30, 2025 | |
Write method for object | 8 | 523 | June 15, 2021 | |
Unpacking binary data into a Julia struct | 7 | 2562 | November 25, 2020 | |
Reading structs from binary stream | 1 | 481 | January 28, 2020 | |
Overload write? | 1 | 322 | August 14, 2019 |