mito
mito copied to clipboard
Pass object to inflate/deflate functions
Right now it's not possible to inflate/deflate depending on values from other fields. If the inflate/deflate would get an optional OBJECT parameter, we could access all the fields.
I admit that it may be useful in some cases, however, it breaks the backward-compatibility because current inflate/deflate functions only expects a single argument. And I think adding an optional parameter is too much for the (possibly) less opportunity to use it.
Adding a special variable could work, if it's okay for you.
I also would like to have this feature, i tihnk a special variable should be fine too.