# What does the new "public" keyword actually do?

**URL:** https://discourse.julialang.org/t/what-does-the-new-public-keyword-actually-do/108975
**Category:** General Usage
**Tags:** question
**Created:** [January 18, 2024, 5:25pm UTC](https://discourse.julialang.org/t/what-does-the-new-public-keyword-actually-do/108975 "2024-01-18T17:25:34Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![Eben60](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eben60/32/13475_2.png) [@Eben60](https://discourse.julialang.org/u/Eben60)
#### Post date: [April 14, 2024, 9:56pm UTC](https://discourse.julialang.org/t/what-does-the-new-public-keyword-actually-do/108975/9 "2024-04-14T21:56:52Z")

</div>

> [@goerz](#):
>
> `@compat public` is more than a viable solution

Compat.jl is a rather large dependency for a no-op. Here an alternative solution:

```julia
@static if VERSION ≥ v"1.11"
    # therein declare public identifiers
    include("public.jl")
end

```

---

_[View the full topic](https://discourse.julialang.org/t/what-does-the-new-public-keyword-actually-do/108975)._
