Skip to content

toml or yaml support #7022

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

Closed
despiegk opened this issue Nov 29, 2020 · 4 comments
Closed

toml or yaml support #7022

despiegk opened this issue Nov 29, 2020 · 4 comments
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one.

Comments

@despiegk
Copy link
Contributor

is it possible to have toml or yaml support for serialization?

maybe we can use c lib for now?

@despiegk despiegk added the Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one. label Nov 29, 2020
@medvednikov
Copy link
Member

V will support TOML-like config language natively (similar to TOML, but much smaller and simpler). I had it on a branch since I needed it for V UI. Will release it next week.

YAML is a huge complex format, so it's not so easy to implement. We will have an official YAML module once comptime is stable enough to implement serialization outside the compiler.

@medvednikov
Copy link
Member

Using a C lib is always an option in V, just need to write a small 50-100 line wrapper so that the library can be easily used in V without going low level. For example: https://github.com/vlang/v/blob/master/vlib/sqlite/sqlite.v

@esquerbatua
Copy link
Contributor

esquerbatua commented Dec 1, 2020

The petition of YAML is duplicated: #708

@Ekopalypse
Copy link
Contributor

I guess this one can be closed, TOML is #7092 and as already pointed out, YAML is #708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants