[swift-evolution] Proposal: Allow Getters and Setters to Throw

Richard Ross richardross at fb.com
Mon Mar 14 17:29:51 CDT 2016


+1 A formal proposal would be awesome. This would be a great feature to the language.
--
Richard

> On Mar 12, 2016, at 4:59 AM, Morten Bek Ditlevsen via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Brent Royal-Gordon <brent at ...> writes:
> 
> When reading this excellent proposal in December, my colleagues and I had just
> had a discussion about the very same topic.
> 
> I am bumping because I think it would be a great addition to the language - and 
> since I have not seen the same proposal discussed in other threads.
> Please excuse me if the topic has already been discussed elsewhere.
> 
> A very quick summary of the thread:
> Basically Nikolai Vazquez proposes that getters and setters can be marked 
> as 'throws'.
> Chris Lattner responds that he thinks that the feature does not need a formal 
> proposal, since the lack of the feature is an implementation detail.
> Jordan Rose notes that there are subtleties of the feature that would be good to 
> discuss in a formal proposal.
> 
> I would like to try and summarise the comments so far into a formal proposal 
> - although the internal optimisations of swiftc regarding inout parameters is 
> beyond my knowledge.
> 
> Any comments on whether the feature is a good idea - or whether a
> formal proposal is the next step to take?
> 
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.swift.org_mailman_listinfo_swift-2Devolution&d=CwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=Ezje1IF3xGXfUMfsj4fBc7oM7BcJys1dhQ6psfXzLMU&m=9a5UK9m7tDsJdUS2Z_mLPI3NTxiyAGccVhtiwBCUI3o&s=7UfO0mdMczc0ncEtu_aVTQsEJSc9OVmidpKDj8QUmiI&e= 



More information about the swift-evolution mailing list