# Redefine Struct when working with REPL

**URL:** <https://discourse.julialang.org/t/redefine-struct-when-working-with-repl/25942>\
**Category:** General Usage\
**Tags:** question, struct\
**Created:** [July 2, 2019, 8:29pm UTC](https://discourse.julialang.org/t/redefine-struct-when-working-with-repl/25942 "2019-07-02T20:29:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [July 2, 2019, 8:34pm UTC](https://discourse.julialang.org/t/redefine-struct-when-working-with-repl/25942/2 "2019-07-02T20:34:14Z")

</div>

Personally I’ve found that my structures don’t change too often, mostly it’s the code that is changing, so when I’ve (rarely) needed to change the structures I just do a stop/start of Julia inside atom.

If your structures are changing often then you can place them in a module like:

```julia
module Data
    struct Lion
        maneColor::String
        roar::String
        weight::Int # Do some work and then realize I need this attribute
    end
end

```

When you rerun the script you will get a warning that Data was redefined, which you can ignore. However Data.Lion will now be the new data object.

---

_[View the full topic](https://discourse.julialang.org/t/redefine-struct-when-working-with-repl/25942)._
