Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Data

Flint brings along a completely new paradigm called Data-Object Convergence Paradigm (DOCP). What this paradigm means and what it brings to the table will be discussed thoroughly in later chapters, but data is very important for it. Unlike other paradigms like OOP (Object-Oriented Programming) you cannot attach functions to data. In Flint, data is exactly just that: data. Nothing more, nothing less.

Data is used to "pack" values together and to make them reusable, just like functions made instructions and operations reusable, data modules make working with similar data much simpler.

But lets not focus on the theory so much but dive into declaring and using data right away.