Skip to content

Dump: Improve Dumping #4

@DavidRaab

Description

@DavidRaab

Dumping values with ->dump and ->dumpw works fine for most cases but has some problems.

  • Code is not the best, it just creates a string with string manipulation. Maybe not the best way to create dumps but works at the moment and it is not a lot of code for what it does.
  • Add the ability to add dumping to other values. This is already partialy solved as I now use an internal dispatch table that can be easily extended for every new type.
  • Write documentation.
  • No Configuration besides the inlining stuff.
  • Strings are not correctly dumped at all. This is because i use string manipulation for creating the dump. A string containing whitespace is not correctly dumped at all. But it's okay. Dumping is for debugging not for creating serialized data.
  • No cyclic reference detection at all. Also okay at the moment. Just don't build such data-structures!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions