Data Model and Types

This is for data model and data types and such

Notes

  • Assign a variable with the = operator.
  • Assign a mutable variable without a type first name = "michael"
  • Assign a type cast variable with a type first Type name = "Michael"
  • Use a variable Type’s creation method to create Type name:creation_method
  • Cast a variable from one type to another. (NewType) name = "Michael"
  • Object creation Type name:new or name = new Type

Data Types

These are the different data types

Primative (simple)

  • Boolean
  • String
  • Integer
  • Float

Collections

  • Lists
  • Tuples
  • Dictionaries

Complex Data

  • Graphs (working upon an adapter to connect to data persistance)
  • Matrix or grid
  • Document (Mongo-like)
  • Tree (hierarchy)
  • 3D matrix in 3D space
  • Hash for security
  • Times and dates