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

Add value.* methods to roundtrip between anydata and Ballerina expression-like string #135

Closed
jclark opened this issue May 19, 2019 · 1 comment
Labels
Area/LangLib Relates to lang.* libraries Type/Improvement Enhancement to language design

Comments

@jclark
Copy link
Collaborator

jclark commented May 19, 2019

Might be called

function toBString(anydata val) returns string;
function fromBString(string str) returns anydata|error;
@jclark jclark added Type/Improvement Enhancement to language design Area/LangLib Relates to lang.* libraries labels May 19, 2019
@jclark jclark added this to the 2019R2 milestone May 19, 2019
@jclark jclark modified the milestones: 2019R2, 2019Rn May 31, 2019
@jclark jclark mentioned this issue Aug 6, 2020
@jclark
Copy link
Collaborator Author

jclark commented Aug 23, 2020

Given design of #499, these are in lang.value:

function toBalString(any|error v) returns string = external;
function fromBalString(string v) returns anydata|error = external;

Here fromBalString only works on what toBalString produces for anydata.

@jclark jclark added the status/pending Design is agreed and waiting to be added label Aug 23, 2020
@jclark jclark closed this as completed in 02a45be Sep 15, 2020
@jclark jclark removed the status/pending Design is agreed and waiting to be added label Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/LangLib Relates to lang.* libraries Type/Improvement Enhancement to language design
Projects
None yet
Development

No branches or pull requests

1 participant