File type

The file type is either a built-in type like or a path pointing from one file to another, like /my-app, ./my-app or ../my-app.

The file type is used to implement an inheritance chain on the filesystem level similar to prototype base Object Oriented Programming.

You can find a list of built-in types in the API reference.

Type chain

A file's type can point to another file. The type of that file can in turn point to yet another file. And so on. The chain of these file's is called the file's type chain

The type chain must end in a built-in type, otherwise the type chain is considered broken.

For example, to implement the .Request method, a .Request file may exist anywhere on the file's type chain.

There is built-in support for finding files and attributes along the type chain.

Subscribe to our newsletter!