Earlier quoted context omitted.
Signals are a design paradigm for reactive programming which have recently trended in the JS frontend space. For e.g., https://preactjs.com/blog/introducing-signals/
Is this effectively a watch() on a variable?
DreamBerd is a perfect programming language
161–170 of 215 posts
Re: DreamBerd is a perfect programming language
#162This is great. Usually with the joke programming languages, you can get at least one person arguing that "x feature" really isn't all that bad, or could maybe be useful. DreamBerd beats them all in that regard. It is 100% terrible! I lost it at the lifetimes implementation.
This feature really isn't all that bad! > To declare a function, you can use any letters from the word function (as long as they're in order): > function add (a, b) => a + b! > func multiply (a, b) => a * b! > fun subtract (a, b) => a - b! > fn divide (a, b) => a / b! > functi power (a, b) => a * b!
count func (a,b) => ...
in out (a,b) => ...
of if (a,b) => ...
Wonderful language, wonderful.Re: DreamBerd is a perfect programming language
#163Re: DreamBerd is a perfect programming language
#164No you can’t store three choices in one-and-a-half bits. Two booleans would be 9 choices whereas 3 bits can store only 8 choices.
Re: DreamBerd is a perfect programming language
#165https://github.com/TodePond/DreamBerd/blob/main/test/test/te...
Re: DreamBerd is a perfect programming language
#166Earlier quoted context omitted.
This feature really isn't all that bad! > To declare a function, you can use any letters from the word function (as long as they're in order): > function add (a, b) => a + b! > func multiply (a, b) => a * b! > fun subtract (a, b) => a - b! > fn divide (a, b) => a / b! > functi power (a, b) => a * b!
Incidentalley this allows for count func (a,b) => ... in out (a,b) => ... of if (a,b) => ... Wonderful language, wonderful.
Re: DreamBerd is a perfect programming language
#167Hello! Creator here. This is an open-source project so please do submit any issues or PRs. Please note: I will close any issues without unreproducible steps.
But you guessed right at least the features from my ACPUL no-keyword programming language.
Here is a quick comparison DreamBerd vs ACPUL:
! - should use ';' and use everywhere if(..){..}; This is important!
if (;true) - no boolean operators !, &&, || etc. no else. use
if (a==0){
true;
};
if (a!=0){
else;
};
Naming - unicode by default and fully translatableFloating indexes in arrays. - works, but it's called a map
index 0.5;
map.set.value(index, 123);
When - works but with restrictions when if;
when(a
Loops - there are loops here but no "break" keyword, just set the end value. Same for functions and there is no "return" keyword, use if(..)Indents - 1 space ident is highest priority. Maybe your editor ident: 2 space or 4 space, -3 is possible, but rare case
Function - don't need to write any keyword like 'fn' or 'func'. just func1 {..};
Strings - all strings always zero quotes. var=STRING;
File Structure - Yes! Really usable and it looks much better than other languages
AI - fully designed for AI copilot and works with partially defective code
..and it works. I wrote a lot of code. Lets fun :)
Here is the demo app https://github.com/web3cryptowallet/Web3CryptoWallet
Re: DreamBerd is a perfect programming language
#168Re: DreamBerd is a perfect programming language
#169I accidentally clicked on this (thought my pointer was on another monitor …). Am I glad I did. Originally I just skipped it because it sounded too clickbaity :D
Re: DreamBerd is a perfect programming language
#170Earlier quoted context omitted.
Yes, when is the way to do loops in this language. From the hidden examples page functi fibonacci (n) => { const var sum = 1! const var i = 0! when (i
And if you don't want your code to loop back by accident you can just use lifetimes! Truly an elegant language