Hacker News new | ask | show | jobs
by llimos 1108 days ago
The 'previous' feature sounds like a great idea! The compiler could even decide which variables it needs to keep track of.
1 comments

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.