Skip to content

Conversation

@DynamicCake
Copy link
Contributor

This new API creates a decoder style interface for deserializing ValueRefs. Values have been removed.

@DynamicCake
Copy link
Contributor Author

Future me, don't forget that luerl_heap:get_table/2 throws an error when the table doesn't exist in state.

I should do more tests on how lua state actually gets passed
through decoders since using vibes isn't the best idea for a library.
Also deserializing something with deser.run shouldn't mutate state.
1. Deserializers should not mutate state
2. It is difficult to implement consistently
3. Custom decoders are harder to write
4. #(lua, data)
@DynamicCake
Copy link
Contributor Author

I have decided that after 38 commits, I am mostly happy with this APi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant