Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

transaction in regular programing language

Name: Descartes 2011-03-08 12:26

Hi,

in databases transaction is quite popular term, but I'm wondering, why in programming language we don't have them build in? I think this could be useful, making error handling easier, from other it could be also performance problem.

It could wok in that way: you create start label in code, and further end label, if something wrong will happend, all actions will be undone and execution would move to end label (where you could write some checking code).

Try/catch construction looks similar, but it's not the same.

Is this implemented on the language level somewhere? Could this be implemented in an elegant way in popular languages?

Name: Anonymous 2011-03-08 16:51

>>11
So... Why was it shelved?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List