News for hackers. Stuff that matters.
Re:Moving Beyond Type Systems by sparkie on Monday June 03, 2024 @12:58AM (#40559476)
The problem is if you pass an offset which the user has not yet input to, you're either going to have to abort or return an error of some kind. If the user inputs to this location later, and you read from it, you've broke referential transparency because you called the same function with the same arguments twice and got a different result.
Re:Moving Beyond Type Systems by Groxx on Monday June 03, 2024 @12:12PM (#40564136)
Why would you have to error, or retain the offset? Block until that input exists, and/or return a higher offset to use for the next call.