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

Introduce arizona.erl and move (opaque) types inside it #104

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

paulo-ferraz-oliveira
Copy link
Member

@paulo-ferraz-oliveira paulo-ferraz-oliveira commented Jun 27, 2024

Description

We'll later add setters, getters and more interface definition to module arizona. This is just a minor first step to understand how consumption would happen next to arizona_example.

The TODO was turned into an issue on GitHub.

Further considerations

When trying to use the new types in arizona_example I had to overcome a few obstacles. I'll look at the changed files and try to "review" on some of the decisions, if warranted.

As "opaque"

We'll later add setters, getters and more interface definition to
module `arizona`

The TODO was turned into an issue on GitHub
When trying to implement -spec(_).s for arizona_example
I came across some issues I overcame by changes to
arizona:

1. parse_str can only return {ok, _}, so we remove that
   obstacle because of opacity (the macro is now a one liner)
2. arizona_socket:assign/_ was separated into get/put, for opacity
3. types were moved to more appropriate modules where they could
   be easily used as opaques (this is most likely not the final
   interface, but a step in between)
4. we added put/get_macro functions due to opacity constraints
5. we now force ARIZONA_LIVEVIEW to take Macros in
   (otherwise this was a hidden hack)
6. we also spec'ed some stuff that's being used
   (developed using _checkouts/)
@paulo-ferraz-oliveira paulo-ferraz-oliveira linked an issue Jun 27, 2024 that may be closed by this pull request
paulo-ferraz-oliveira added a commit to arizona-framework/arizona_example that referenced this pull request Jun 27, 2024
Copy link
Member

@williamthome williamthome left a comment

Choose a reason for hiding this comment

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

Great change!

@williamthome
Copy link
Member

Unresolved conversations are simply explanations, so I am giving myself the right to resolve them and move forward to merge arizona-framework/arizona_example#9.

@williamthome williamthome merged commit 0372008 into main Jun 28, 2024
3 checks passed
@williamthome williamthome deleted the feature/arizona.erl branch June 28, 2024 00:43
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.

Revisit ignore_xref
2 participants