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

feat: bring yaml #250

Closed
wants to merge 1 commit into from
Closed

feat: bring yaml #250

wants to merge 1 commit into from

Conversation

eladcon
Copy link
Contributor

@eladcon eladcon commented May 30, 2024

No description provided.

Comment on lines +17 to +30
```js
bring fs;
bring yaml;
bring cloud;

let file = fs.readFile("./test.yml");
let value = yaml.parseValue(file);
yaml.stringifyValue(json);

new cloud.Function(inflight () => {
let value = yaml.parse(file);
yaml.stringify(json);
});
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should totally include this in the built-in standard library!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we already have some yaml stuff in the standard library?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree this should be part of the stdlib.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently we already have fs.readYaml.. was not aware of it

indent: num?;
}

pub class Util {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the benefit of this duplication? Why not just make the extern methods public?

@eladcon eladcon closed this Jun 2, 2024
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.

3 participants