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 is_map_key/2 as a guard BIF to the reference documentation #5101

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

tomas-abrahamsson
Copy link
Contributor

I noticed is_map_key/2 is allowed in guard tests, but the reference documentation currently does not list it, neither the Maps in Guards section, nor the Guard Expressions section. This PR adds it to the reference documentation. I added it to the table of type test BIFs since this is where the rest of the is_... functions are listed.

@zuiderkwast
Copy link
Contributor

Nice, but it's not really a type test bif, so I think it's better to put it in the table of Other BIFs allowed in guards.

@tomas-abrahamsson
Copy link
Contributor Author

Yes, you have a point. Should I move it? It would then be the only is_ function in that table, and also the only function returning a boolean. The table it is in now is full of those. But maybe that is secondary.

@zuiderkwast
Copy link
Contributor

I think move it, but let's leave it to the maintaimers to decide.

@bjorng bjorng added documentation enhancement team:VM Assigned to OTP team VM labels Aug 9, 2021
@bjorng
Copy link
Contributor

bjorng commented Aug 9, 2021

I think move it, but let's leave it to the maintaimers to decide.

I also think it should be moved.

@bjorng bjorng self-assigned this Aug 9, 2021
@bjorng bjorng added the testing currently being tested, tag is used by OTP internal CI label Aug 9, 2021
@tomas-abrahamsson
Copy link
Contributor Author

I moved it to the other table and force-pushed it.

@bjorng bjorng merged commit b1e69c5 into erlang:maint Aug 9, 2021
@bjorng
Copy link
Contributor

bjorng commented Aug 9, 2021

Thanks for your pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants