Live data from Hacker News

DreamBerd is a perfect programming language

github.com

211–215 of 215 posts

Re: DreamBerd is a perfect programming language

#212
post #104

Earlier quoted context omitted.

The 'previous' feature sounds like a great idea! The compiler could even decide which variables it needs to keep track of.

I think it would lead to a lot of hard to find logical bugs in a lot of projects but I think it would be a great operator in say, a scripting language for a turn based game.

I am currently working on a DSL which actually does include a "back" operator! The language is used to describe simulated circuits, so you can inquire about the value a register had during a previous clock cycle.

Re: DreamBerd is a perfect programming language

#214

The when feature looks genuinely useful. Shame on you! But in another language an event listening on variable change privative would be pretty cool. In JS you could then replace [x,setX] = useState(0); with x = 0;

You may be pleasantly surprised with how it works in Svelte: https://svelte.dev/tutorial/reactive-assignments

Re: DreamBerd is a perfect programming language

#215

>If you're unsure, that's ok. You can put a question mark at the end of a line instead. It prints debug info about that line to the console for you. Man, I love this idea. Imagine if in JavaScript, you could just add a `?` to a line to print out the value of all variables and expressions referenced. Or `?` on a line by itself to print out the value of all variables in scope. > DreamBerd has significant whitespace. Us…

> Man, I love this idea. Imagine if in JavaScript, you could just add a `?` to a line to print out the value of all variables and expressions referenced. Tomorrow is today: https://twitter.com/TodePond/status/1595464031728459776

This is kind of genius! :)

In library form: https://todepond.gitbook.io/habitat/documentation/console

Post reply on HN