https://github.com/juliaobjects/constructionbase.jl
Primitives for construction of objects
https://github.com/juliaobjects/constructionbase.jl
immutable julia
Last synced: about 1 month ago
JSON representation
Primitives for construction of objects
- Host: GitHub
- URL: https://github.com/juliaobjects/constructionbase.jl
- Owner: JuliaObjects
- License: mit
- Created: 2019-09-29T12:02:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-15T14:52:19.000Z (2 months ago)
- Last Synced: 2025-04-10T01:06:34.515Z (about 1 month ago)
- Topics: immutable, julia
- Language: Julia
- Homepage:
- Size: 306 KB
- Stars: 43
- Watchers: 4
- Forks: 23
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ConstructionBase
[](https://JuliaObjects.github.io/ConstructionBase.jl/stable)
[](https://JuliaObjects.github.io/ConstructionBase.jl/dev)
[](https://github.com/JuliaObjects/ConstructionBase.jl/actions?query=workflow%3ACI)
[](https://github.com/JuliaObjects/ConstructionBase.jl)ConstructionBase is a very lightweight package, that provides primitive functions for construction of objects:
```julia
setproperties(obj::MyType, patch::NamedTuple)
constructorof(MyType)
```
These functions can be overloaded and doing so provides interoperability with the following packages:
* [Flatten.jl](https://github.com/rafaqz/Flatten.jl)
* [Setfield.jl](https://github.com/jw3126/Setfield.jl)
* [BangBang.jl](https://github.com/tkf/BangBang.jl)
* [Accessors.jl](https://github.com/JuliaObjects/Accessors.jl)
* [ModelParameters.jl](https://github.com/rafaqz/ModelParameters.jl)