Releases: wandvvs/dust-lang
Releases · wandvvs/dust-lang
release 0.0.4
- 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
- now all variables are initially float.
- bool types
release 0.0.2
- 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
dust_lang Merge branch 'main' of https://github.com/wandvvs/dust-lang