Skip to content

Suggestion: Serialization Convenience Wrapper String = Filename #30151

Closed
@iwelch

Description

@iwelch

A very common (perhaps most common) use for serialization is saving to a file. If the first argument is a string, it could be interpreted as a filename wlog.

serialize( filename::AbstractString, anything )= open(filename, "w") do ofile; serialize(ofile, anything); end;

deserialize( filename::AbstractString )= ( o=(); open(filename, "r") do ofile; o= deserialize(ofile); end; o );

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions