Proposal: Object/?? Destruction

aberba karabutaworld at gmail.com
Wed Oct 4 09:57:00 UTC 2017


On Wednesday, 4 October 2017 at 09:52:39 UTC, aberba wrote:
> Upon reading this, It triggered an idea.
>
> On Saturday, 30 September 2017 at 16:10:44 UTC, Jonathan Marler 
> wrote:
>> [...]
>
> Upon reading the DIP, it reminds me of object destruction.
>
> // extracts success & message from returned type. Could be 
> tuple or structure, etc. May even eliminate use of tuples for 
> multiple return
>
> auto {success, message} = callVoldermortFunction();
>
> This is concept is used in Kotlin. JavaScript es6 takes it even 
> further (function parameters and arguments support object 
> destruction)

Oops. Wrong place. Will repost in general.


More information about the Digitalmars-d-announce mailing list