Hacker News new | past | comments | ask | show | jobs | submit login
DreamBerd 2: Sequel to the perfect programming language (github.com/todepond)
7 points by marvinborner on Sept 21, 2023 | hide | past | favorite | 6 comments



Is there a migration guide?


None needed, this is a drop-in replacement


> Each line ends in an exclamation mark.

That's ridiculous, how are you supposed to do 'logical not'?

Some very strange design choices are stopping me from even trying this programming language.


Whoosh or not? It's definitely a humoristic language given some other ones:

> To avoid confusion, the delete statement only works with primitive values like numbers, strings, and booleans. > delete 3! > print(2 + 1)! // Error: 3 has been deleted

Although the feature about prefixing a variable with "previous" to get its previous actually sounds quite useful!

But also to answer your question, it uses a semi-colon for NOT:

> You might be wondering what DreamBerd 2 uses for the 'not' operator, which is an exclamation mark in most other languages. That's simple - the 'not' operator is a semi-colon instead.

I love this kind of project as it can make you rethink some basic things we're used to work with in other languages.


Hey thanks! For context, I am the creator of DreamBerd


Haha good one, makes the whole thing even better!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: