Skip to content

Conversation

TimWolla
Copy link
Member

No description provided.

@iluuu1994
Copy link
Member

Sorry, pressed the wrong button. What's the rationale here? I don't understand the benefits here.

@TimWolla
Copy link
Member Author

What's the rationale here? I don't understand the benefits here.

see: https://externals.io/message/127353#127414

TLDR: Allowing to define arrays with unquoted keys using existing syntax.

@mvorisek
Copy link
Contributor

mvorisek commented May 21, 2025

TLDR: Allowing to define arrays with unquoted keys using existing syntax.

Have you considered [a: 'x', b: 5, ...] syntax?

It is not BC, but introducing array() function seems to be a step backward to me, as it is much less readable and keys with spaces are impossible - or will be BC-breaking anyway https://3v4l.org/hOBDb.

@iluuu1994
Copy link
Member

iluuu1994 commented May 22, 2025

I would agree with @mvorisek on this one. We have spent the last decades switching from array() to []. Do we really want to switch back again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants