Suggest alength in error message on attempt to access array length via .length

Description

Problem:

Newcomers are easily confused by the inability to access <array>.length via (.length <array>).

Approach:

Append to invalid field access message, a suggestion to use alength for this specific case (class.isArray and field = "length")

Environment

None

Attachments

1

Activity

Show:

Alex Miller June 19, 2014 at 8:56 PM

We don't have any plans to add anything this specific to the error check, thanks.

Declined

Details

Assignee

Reporter

Labels

Patch

Priority

Created June 19, 2014 at 11:55 AM
Updated June 19, 2014 at 8:56 PM
Resolved June 19, 2014 at 8:56 PM