hippyman
Member
There are these following functions existing already
ds_map_add_list
ds_map_add_map
ds_map_replace_list
ds_map_replace_map
ds_list_mark_as_map
ds_list_mark_as_list
I get that these are really only supposed to be used for JSON (or at least that's what the documentation seems to imply). But I actually tend to use them when I'm trying to make more complex data structures because it makes cleanup way easier. Rather than having to create a script that iterates through all the data structure's internals, I can just destroy the root of the data structure and it's all cleaned up.
I was hoping that it would be possible to add support for this with the other data structure types.
ds_map_add_stack
ds_map_add_queue
ds_map_add_priority_queue
ds_map_add_grid
ds_list_mark_as_stack
ds_list_mark_as_queue
ds_list_mark_as_priority_queue
ds_list_mark_as_grid
ds_grid_mark_as_stack
ds_grid_mark_as_queue
ds_grid_mark_as_list
ds_grid_mark_as_map
ds_grid_mark_as_priority_queue
ds_grid_mark_as_grid
etc..
I get that you are done adding features to 1.x, so would it be possible to see this in 2.x?
I personally would find this useful. But I would also like to hear what other people have to say as well.
ds_map_add_list
ds_map_add_map
ds_map_replace_list
ds_map_replace_map
ds_list_mark_as_map
ds_list_mark_as_list
I get that these are really only supposed to be used for JSON (or at least that's what the documentation seems to imply). But I actually tend to use them when I'm trying to make more complex data structures because it makes cleanup way easier. Rather than having to create a script that iterates through all the data structure's internals, I can just destroy the root of the data structure and it's all cleaned up.
I was hoping that it would be possible to add support for this with the other data structure types.
ds_map_add_stack
ds_map_add_queue
ds_map_add_priority_queue
ds_map_add_grid
ds_list_mark_as_stack
ds_list_mark_as_queue
ds_list_mark_as_priority_queue
ds_list_mark_as_grid
ds_grid_mark_as_stack
ds_grid_mark_as_queue
ds_grid_mark_as_list
ds_grid_mark_as_map
ds_grid_mark_as_priority_queue
ds_grid_mark_as_grid
etc..
I get that you are done adding features to 1.x, so would it be possible to see this in 2.x?
I personally would find this useful. But I would also like to hear what other people have to say as well.