Re: [RFC] [DISCUSSION] Type casting in array destructuring expressions

From: Date: Tue, 07 Apr 2020 17:24:57 +0000
Subject: Re: [RFC] [DISCUSSION] Type casting in array destructuring expressions
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-109557@lists.php.net to get a copy of this message
> Le 7 avr. 2020 à 17:09, Enno Woortmann <enno.woortmann@web.de> a écrit : > > As the proposal explicitly aims at type casts > when working with data from a untyped source (eg. iterating over a CSV > file, XML without a XSD defining the types of the elements) I feel that the RFC lacks a section named “Motivation”... That said, the larger question is: How many ad-hoc features do we want to add to array destructuring? For type-casting is one specific kind of transformation you may want to apply to your data. —Claude

« previous php.internals (#109557) next »