I am in favor of typed properties but it's actually a fairly low
priority for me. There are also several questions that need answering,
such as what happens when you type a property with type `Foo` but
don't assign it a value in the constructor. Also, is the check
bypassed with inheritance when you
On 07/12/2015 05:12 PM, Rasmus Lerdorf wrote:
> On 07/12/2015 12:37 PM, Larry Garfield wrote:
>> I don't know why we're even talking about IDEs here. IDE
>> auto-completion isn't the point, anymore than it was the point for
>> scalar type hints or return type hints. It's about the language doing
On 07/12/2015 12:37 PM, Larry Garfield wrote:
> I don't know why we're even talking about IDEs here. IDE
> auto-completion isn't the point, anymore than it was the point for
> scalar type hints or return type hints. It's about the language doing
> type checking for you and static analysis, so tha
On Sun, Jul 12, 2015 at 4:51 PM, Alan Willms wrote:
> What about arrays? How do I declare Foo[] ?
>
> http://ocramius.github.io/extremely-defensive-php/#/69
>
> 2015-07-12 16:37 GMT-03:00 Larry Garfield :
>
> > On 07/12/2015 11:16 AM, Marcio Almada wrote:
> >
> >> Stas,
> >>
> >> 2015-07-12 5:10
What about arrays? How do I declare Foo[] ?
http://ocramius.github.io/extremely-defensive-php/#/69
2015-07-12 16:37 GMT-03:00 Larry Garfield :
> On 07/12/2015 11:16 AM, Marcio Almada wrote:
>
>> Stas,
>>
>> 2015-07-12 5:10 GMT-03:00 Stanislav Malyshev :
>>
>>> Hi!
>>>
>>> Not completely bogus.
On 07/12/2015 11:16 AM, Marcio Almada wrote:
Stas,
2015-07-12 5:10 GMT-03:00 Stanislav Malyshev :
Hi!
Not completely bogus. At least with typed properties you won't need to
actually write the docblocks to have the IDE "hints". It's a minor win
for IDE users too.
I don't see "not needing to w
Of course the main target - check types, but not all use the check
types, but almost everyone uses Ide, so I said, it is actual and
useful.
I do not see contradictions, everyone who wants to write PHP 5 code,
need use DocBlock @var.
I hope that in the PHP 7.x, DocBlock is only for documentation o
Lester,
2015-07-12 5:27 GMT-03:00 Lester Caine :
> On 12/07/15 09:10, Stanislav Malyshev wrote:
>>> Not completely bogus. At least with typed properties you won't need to
>>> > actually write the docblocks to have the IDE "hints". It's a minor win
>>> > for IDE users too.
>> I don't see "not needi
Stas,
2015-07-12 5:10 GMT-03:00 Stanislav Malyshev :
> Hi!
>
>> Not completely bogus. At least with typed properties you won't need to
>> actually write the docblocks to have the IDE "hints". It's a minor win
>> for IDE users too.
>
> I don't see "not needing to write docblocks" as a win, quite th
Hi Pierre, ppl,
Thanks for the review.
On 9 July 2015 at 05:26, Pierre Joye wrote:
> You can remove references to 5.3 as we don't support it anymore.
Done.
> A possible improvement would be to make either a table or a section
> per PHP version for the setup (install vc9, vc11 or vc14). Maybe a
On 12/07/15 09:10, Stanislav Malyshev wrote:
>> Not completely bogus. At least with typed properties you won't need to
>> > actually write the docblocks to have the IDE "hints". It's a minor win
>> > for IDE users too.
> I don't see "not needing to write docblocks" as a win, quite the
> contrary. I
Hi!
> Is this a bad expectation to have? Or should isset() silence the nested
> undefined index as well? I also realized this has always been the
That would be really hard to do IMO. Imagine $bar being an object and
implementing array access - so it needs somehow know that when offsetGet
is call
Hi!
> Not completely bogus. At least with typed properties you won't need to
> actually write the docblocks to have the IDE "hints". It's a minor win
> for IDE users too.
I don't see "not needing to write docblocks" as a win, quite the
contrary. In fact, in a number of projects I worked with, cod
13 matches
Mail list logo