[Feature Request] add FileHandle.write(self, data: List[UInt8])
and possibly define a serialization interface
#2614
Labels
FileHandle.write(self, data: List[UInt8])
and possibly define a serialization interface
#2614
Review Mojo's priorities
What is your request?
Besides adding the function mentioned in the title, I've been thinking of maybe defining a serialization and deserialization interface (trait) would make many later implementations easier (Json, XML, etc.). That way:
What is your motivation for this change?
Having a clearly defined serialization interface and adding it to all mayor stdlib types will make everything easier later on. And if List[UInt8] will represent every type for exchange with external systems it also helps to define interfaces for it, and there would be no need to make something like pickle.
Any other details?
No response
The text was updated successfully, but these errors were encountered: