Skip to content

Releases: wandvvs/dust-lang

release 0.0.4

15 Mar 15:12
4ae4807
Compare
Choose a tag to compare
  • Logical operators ( '<', '>', '==', '!=' )

Example:

use io;

const a = 10 + 2;
mut b = (5 * 2) + 2;

const aEqualB = ? a == b;
writeln(aEqualB);

const PI = 3.14;
const EI = 1.57;

const piLessThanEI = ? PI < EI;
writeln(piLessThanEI);

mut test = ? PI == EI * 2;
writeln(test);

test = "froom boolean to str";
writeln(test);

test = ? 1.57 * 2 == PI;
writeln(test);

Output:

true
false
true
froom boolean to str
true

release 0.0.3

12 Mar 17:59
3d934c7
Compare
Choose a tag to compare
  • now all variables are initially float.
  • bool types

release 0.0.2

11 Mar 17:00
bcfe236
Compare
Choose a tag to compare
  • extern std;
  • writeln (only with std)
  • string data types
  • const data types
    Example:
extern std;

const b = 5;
b = 10; // Syntax error
writeln("Hello, world!");

mut a = 10;
a = "from int to str";

writeln(a);

mut var = "from str to int";
var = 5;

writeln(var);
Hello, world!
from int to str
5

release 0.0.1

10 Mar 20:43
Compare
Choose a tag to compare
dust_lang

Merge branch 'main' of https://github.com/wandvvs/dust-lang