calambrac
Joined 19 years ago
Joined 19 years ago
try:
remote_resource.start_transaction()
#dostuff
remote_resource.commit()
except e:
remote_resource.rollback()
How do you do the same thing when modifying a local variable? You might try making a copy, modifying that, and then assigning back, but that's boilerplate, and it's easy to get wrong. Worlds are a more primitive mechanism that would be baked into a language, such that building a generic transaction api for local actions on top of worlds would be trivial. The fact that it could look exactly like the transaction api that you currently know and love for remote resources is a feature.The period is a part of the quotation itself.
3. Use a pair of commas in the middle of a sentence to set off clauses, phrases, and words that are not essential to the meaning of the sentence. Use one comma before to indicate the beginning of the pause and one at the end to indicate the end of the pause.
I was with him until he said, "I could care less."
Couldn't, dammit, COULD NOT. This irks me to no end.
http://owl.english.purdue.edu/owl/resource/577/01/
The fact that CL is already doing the thing that Godin just descended from the sky to tell us CL should do is, to you, evidence that this isn't 'unbelievably weak'? Will you start reading my blog if I promise to fill it with gems like "What if Google started matching ads with searches?" or "What if Amazon started up an affiliate program?"
For the record, I think Spolsky can be pretty unbelievably lame, as well. People have been talking about how CL should monetize for years.
This is unbelievably weak. Godin's not exactly on a hot streak right now, is he?
Where in my comment did I describe Worlds in a limited way? I just gave one small example of one possible application of them, in reply to a comment specifically about their relationship to transactions.