What I like about Volt: Symbols

We will start the first post of this series in a light way talking about symbols and how the module based symbol lookup makes things easier for the coder. While there are other languages that also use a similar module & symbol as Volt, a comparison to C lets us illustrate why this is a system to like.

In this example we see that in order for the calling function be able to call the_function it needs to be pre-declared.

static int the_function();

int calling()
{
	return the_function() + 3;
}

int the_function(int arg)
{
	return calling() + 39;
}

But in Volt thanks to the module & symbol system Volt this is not neccassery since semantically all symboles are declared at the same time.

fn calling() i32
{
	return the_function() + 3;
}

fn the_function() i32
{
	return 39;
}

What I like about Volt: Introduction

This series of posts was started in a effort to spread the word of Volt in a friendly and easy to read way. It also functions as a light reading material for people looking to get into Volt and understand the concepts behind it.


The blog lives!

There is now a Volt blog of sorts, it was mostly created because of the of the “Why I like Volt” series of posts that also uses the same blogging engine as these posts. But we will also be adding updates and release here.