Erlang Forums
Read post

Pre-EEP: BEAM-level in-app export visibility

A draft Erlang Enhancement Proposal (EEP) introduces application-scoped function visibility at the BEAM level. Two new module attributes are proposed: -app/1 to declare an application domain, and -app_export/1 to mark functions as internal to that domain. Functions listed in -app_export/1 remain exported but the BEAM runtime restricts calls to them from modules in the same app domain only — cross-domain calls raise a badappcall error. The goal is to make internal APIs explicit and enforceable without new syntax changes, complementing existing EEP 5 and EEP 67 with runtime rather than static enforcement. The author seeks community feedback on attribute naming, derivation strategy, runtime enforcement desirability, error shape, and VM/JIT performance impact.

    #general-programming#authentication#erlang
Today•2m read time•From erlangforums.com
Post cover image
21 Impressions
Erlang Forums's image
Erlang Forums

Erlang Forums is a community-driven platform for discussions related to the Erlang programming langu...

35 Followers

•

85 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard