Modify

Opened 6 years ago

Closed 5 years ago

#2656 closed Feature Request (Rejected)

array automatic redim for $array[] = ...

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

dear developers. Whether technically difficult to make constructions like $some_array [] = 3, automatically adds a new element to the array $some_array?

Attachments (0)

Change History (10)

comment:1 Changed 6 years ago by TicketCleanup

  • Version 3.3.8.1 deleted

Automatic ticket cleanup.

comment:2 Changed 6 years ago by jchd18

Your suggestion of this syntactic sugar is greatly inferior to what ReDim currently allows. Hence ReDim would still be needed for N-dimensional arrays. Moretheless it would possibly collide with another future feature using part of this syntax.

comment:3 Changed 6 years ago by anonymous

jchd18, which future function are you talking about?

comment:4 Changed 6 years ago by jchd18

I ain't a Dev, so only future will tell.

comment:5 Changed 6 years ago by guinness

I personally would reject this feature.

comment:6 Changed 6 years ago by anonymous

This feature requires an internal replacement for _ArrayAdd.
But PHP shows... It's possible.

I like the idea.

comment:7 follow-up: Changed 6 years ago by anonymous

That is only syntactic sugar for _ArrayAdd($arr, 3), is that really necessary?

comment:8 in reply to: ↑ 7 ; follow-up: Changed 6 years ago by anonymous

Replying to anonymous:

That is only syntactic sugar for _ArrayAdd($arr, 3), is that really necessary?

I think that it's time to get AutoIT native functions for working with arrays, and not rely on additional libraries such as _array ..

comment:9 in reply to: ↑ 8 Changed 6 years ago by anonymous

Replying to anonymous:

I think that it's time to get AutoIT native functions for working with arrays, and not rely on additional libraries such as _array ..

Hm... why not $arr.push($value), returning $value? That doesn't require a new operator.

comment:10 Changed 5 years ago by Melba23

  • Resolution set to Rejected
  • Status changed from new to closed

Rejected.

M23

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.