Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save function as value in any structures #10

Open
nskforward opened this issue May 20, 2017 · 1 comment
Open

Unable to save function as value in any structures #10

nskforward opened this issue May 20, 2017 · 1 comment
Labels

Comments

@nskforward
Copy link

Is there an opportunity to store and then call a function from binn structures?

@kroggen
Copy link
Collaborator

kroggen commented May 20, 2017

Binn is a serialization format.

It is intended to be used to transfer data between applications, often in different devices.

So storing a pointer to a function would not work.

But you can store Javascript, Python or Lua functions as strings and then parse and execute them on the receiver app.

I don't know if this is a good practice. Generally we send just data to the receiver application that can process it in a function and then send back the result, like a webservice or RPC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants