2 ms·
It's up to you. It's easy to imagine any statically typed language having a general-purpose JSON type. You could imagine all functions accepting and returning
by mrkeen 3y ago
It's up to you.
It's easy to imagine any statically typed language having a general-purpose JSON type. You could imagine all functions accepting and returning such objects.
Now it's your turn to implement the sum(a,b) function. Would you like to allow the caller to pass anything in as a and b?
- lanstin 3y agoThis is like when people use protobuf to send a list of key-value mappings, and call that a protocol. (I've seen that same design in many protocol description arenas, even SQL database schemas that are just (entityId INT, key CLOB, value BLOB).