Skip to content

A flexible datatype capable of storing many types including collections.

License

Notifications You must be signed in to change notification settings

MatthewT95/Polytype-datatype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polytype - Datatype

This repo provides a class Variable, which can store several different datatypes. Each instance can dynamically change its type and value at run time. It can also be locked to a specific type(Static type) or value(Constant). Some datatypes are collections which can store multiple Variable instances inside them. Collections can even store other collections. A collections elements can be locked to specific type as well. Single value types include Integer,Float,String and Boolean. Collection types include List,Dictionary,Stack and Queue. There are also special types such None,Any and Error. Finally, there is a Pointer datatype which stores a reference to another Variable instance. Some datatypes values such Integer,Float,String and Boolean can be casted to other types.

Authors

License

MIT

Features

  • Static and dynamic typing
  • Variables and constants
  • Collections such Lists, Dictionaries, Stacks and queues.
  • Nestabllity of collections
  • Pointers
  • Special types such None and Error

Demo

Usage/Examples

Documentation

Datatypes

About

A flexible datatype capable of storing many types including collections.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published