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

Why from_erlang_datetime functions only target Erlang? #35

Open
ghivert opened this issue Aug 7, 2024 · 1 comment
Open

Why from_erlang_datetime functions only target Erlang? #35

ghivert opened this issue Aug 7, 2024 · 1 comment

Comments

@ghivert
Copy link

ghivert commented Aug 7, 2024

Hi!

The question is in the title. :) Why from_erlang_universal_datetime does not target JS, while it is coded in pure Gleam? I mean, OK, the format is somewhat Erlang specific, but we're only talking about a structure having the Erlang Datetime data structure. Nothing stops you to use it in JS. 🙂
This also leads to some frustration when you want to code a unique decoder for your data structure, and use it everywhere, from Erlang to JS. 🙂

Thanks!

@massivefermion
Copy link
Owner

massivefermion commented Aug 7, 2024

Hi
Yeah, that makes sense actually!
Sometimes I just do weird things like that! :)
I'll fix it as soon as I can, but maybe it could use a better name!
thanks for the issue

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

No branches or pull requests

2 participants