[Vala] Adding defer in vala?

Go adds a new keywordnamed 'defer' that schedules the execution of a statement until a return is perfiormed. 
Something like.. I have to do x,y,z before leaving..

In vala we have a bit of automagic reference counting which can close filedescriptors or destroy objects 

Do you think that it would be good for vala to support 'defer'?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]