Is there a specific reason for using a space as a separator in the icp:public|private
metadata?
Is this specified in any particular standard or specification?
Only figured out a space was needed by having a look at ic-wasm
source code.
Is there a specific reason for using a space as a separator in the icp:public|private
metadata?
Is this specified in any particular standard or specification?
Only figured out a space was needed by having a look at ic-wasm
source code.
It’s in the interface spec: The Internet Computer Interface Specification | Internet Computer
Cool thanks for the link .
Do you know why a space as separator? That’s a common standard for those type of metadata?
I guess for consistency. The canister endpoints are also using space as separator, e.g., canister_update/query
.
I see, makes sense. Thanks for the explanation.
IIRC, our rationale for the latter was that the space convention is among the least likely to lead to accidental confusion with identifier syntax produced by some languages (as almost every printable ASCII character is legal in identifiers in some language…).
Actually, the space led me to be confused, so indeed the language wasn’t but a human was .
I would have been less surprised if the delimiter had been a dash, underscore, or point, for example. That’s probably because a long time ago, using space in file names was not supported.
Thanks for the explanation!