Category Publication

There are no null pointers in Argentum

TLDR; in Argentum there is no separate nullable, bool and optional types. It’s the same concept, thus all operations, guaranties and safety measures are uniformly and seamlessly applicable all of them. Nowadays, it has become fashionable to add Null safety to all programming languages. In Argentum,…

There is no “bool” in Argentum

What values can hold optional<T>? It’s either the value T itself or a special value “nothing” that doesn’t match any values of T . Now let’s try a trick: what is optional<void>? It’s a single-bit value that distinguishes between “nothing”…

Argentum has no statements, only expressions

In Argentum, there is an operator {A; B; C}, which executes A, B, and C sequentially, returning the result of C. Blocks can group multiple expressions: Blocks allow local variables: Blocks can appear in any expressions, for example in a variable initializer. Note the absence of…

How Argentum programming language handles object hierarchies

Practical example, comparison with popular languages, operation semantics, multithreading features, internal structure Original link: reddit To avoid excessive theorizing, let’s examine the reference model of the language using a practical example of a desktop application’s data model. We’ll design a…