Update 'Guidelines'

Sasha Koshka 2022-09-29 05:28:06 +00:00
parent e27a0bfe6e
commit 119fe56411
1 changed files with 2 additions and 0 deletions

@ -1,5 +1,6 @@
# Introduction
These are guidelines to follow when designing new language features, working on the compiler, or any other related tooling.
# 0. Decouple Standard Library
In some languages, certain syntactical or environmental features depend on the presence of a standard library. Even C does to an extent, with the `= { 0 }` intializer (it calls memset in the background). The ARF standard library will be fully optional, and decoupled from the language. Parts of the standard library should be decoupled from eachother as well. There must be some internal dependencies among them (for example, things like IO and memory management, as well as common interfaces and generics) but it should be as non-monolithic as possible.
@ -9,6 +10,7 @@ The language itself must be extremely simple. It shouldn't have a lot of concept
Keep this in your mind:
> A designer knows [they have] achieved perfection not when there is nothing left to add, but when there is nothing left to take away.
# 2. ARF is Immutable
Language features, and for the most part program structure, must be immutable. This means nothing like reflection, or operator overloading.