Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0306-erlang-module-doc-list_to_atom-1-binary_to...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0306-erlang-module-doc-list_to_atom-1-binary_to_atom-2.patch of Package erlang
From 0b2d694f87018107b249ee95af64f36f25a8d9f2 Mon Sep 17 00:00:00 2001 From: Kjell Winblad <kjellwinblad@gmail.com> Date: Mon, 31 Aug 2020 14:04:40 +0200 Subject: [PATCH 06/39] erlang module doc: : list_to_atom/1, binary_to_atom/2 * Note about atom name length limit * Note about that one should consider binary_to_existing_atom/2 --- erts/doc/src/erlang.xml | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index 60220ef29a..1f646867b1 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -489,10 +489,27 @@ Z = erlang:adler32_combine(X,Y,iolist_size(Data2)).</code> encoded atoms</seeguide> in section "External Term Format" in the User's Guide.</p> </note> + <note> + <p>The number of characters that are permitted in an atom + name is limited. The default limits can be found in the + <seeguide marker="system/efficiency_guide:advanced"> + efficiency guide (section Advanced)</seeguide>.</p> + </note> + <note> + <p>There is configurable limit on how many atoms that can + exist and atoms are not garbage collected. Therefore, it is + recommended to consider if + <c>binary_to_existing_atom/2</c> is a better option + than <c>binary_to_atom/2</c>. The default limits can + be found in <seeguide + marker="system/efficiency_guide:advanced">efficiency guide + (section Advanced)</seeguide>.</p> + </note> <p>Examples:</p> <pre> > <input>binary_to_atom(<<"Erlang">>, latin1).</input> -'Erlang' +'Erlang'</pre> + <pre> > <input>binary_to_atom(<<1024/utf8>>, utf8).</input> 'Ѐ'</pre> </desc> @@ -2731,7 +2748,23 @@ false</code> above 255. For more information on Unicode support in atoms, see <seeguide marker="erl_ext_dist#utf8_atoms">note on UTF-8 encoded atoms</seeguide> - in section "External Term Format" in the User's Guide.</p> + in section "External Term Format" in the User's Guide.</p> + <note> + <p>The number of characters that are permitted in an atom + name is limited. The default limits can be found in the + <seeguide marker="system/efficiency_guide:advanced"> + efficiency guide (section Advanced)</seeguide>.</p> + </note> + <note> + <p>There is configurable limit on how many atoms that can + exist and atoms are not garbage collected. Therefore, it is + recommended to consider if + <c>binary_to_existing_atom/2</c> is a better option + than <c>list_to_atom/1</c>. The default limits can + be found in <seeguide + marker="system/efficiency_guide:advanced">efficiency guide + (section Advanced)</seeguide>.</p> + </note> <p>Example:</p> <pre> > <input>list_to_atom("Erlang").</input> -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor