PM should probably support Array.prototype.findLast/findLastIndex

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
jez9999
Fanatic
Fanatic
Posts: 106
Joined: 2015-05-30, 19:35
Location: UK

PM should probably support Array.prototype.findLast/findLastIndex

Unread post by jez9999 » 2023-01-12, 12:07

As Array.prototype.findLast/findLastIndex are supported in all major browsers now and have become a stage 4 proposal, PM should probably support them. Seems like a simple enough algo to implement, loop backwards instead of findIndex's forwards.

User avatar
Nuck-TH
Project Contributor
Project Contributor
Posts: 197
Joined: 2020-03-02, 16:04

Re: PM should probably support Array.prototype.findLast/findLastIndex

Unread post by Nuck-TH » 2023-01-12, 12:52

There are more important developments to do than chase every new shiny.

jez9999
Fanatic
Fanatic
Posts: 106
Joined: 2015-05-30, 19:35
Location: UK

Re: PM should probably support Array.prototype.findLast/findLastIndex

Unread post by jez9999 » 2023-01-12, 13:09

Yeah, I don't really understand the instinct to reply with a "no can do" attitude. You'd be better off not replying than being so extremely negative. This is rather simple to implement and your reaction pretty much comes across as an insult when I was merely flagging an interesting new feature.

Here, I'm gonna give you a free template to help you out in future:

"Thanks for pointing this out, we'll certainly keep it in mind for future implementation. We probably can't get round to it right now with dispatch because we're very busy with existing development but we'll put it on the list for the future. Here's a link to the issue I've filed for it: xxx"

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 782
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: PM should probably support Array.prototype.findLast/findLastIndex

Unread post by jobbautista9 » 2023-01-12, 13:19

If it's still a proposal/draft, you're just most likely going to get that kind of response. From our roadmap:
Pale Moon's core is in flux, just like the web is. With the current practice of a total lack of standards and everyone implementing things based on draft specifications, "whatever the other browser has" and recommendations (instead of established and above all developer-requested, community-agreed proposals and standards), as well as an increasing number of pseudo-standards being written by browser vendors in an implementation-first marketing strategy, a lot of the features in Pale Moon are determined and implemented on an on-demand basis: If there is enough demand for a certain feature or if it is considered beneficial to the browser and the web, it will be implemented - other features may be put on hold or decided against altogether.
If you can prove that there is actually enough demand for the feature (and it is breaking some high-profile websites which really uses it), then it may be taken into consideration. Otherwise, no.

But of course, if you can implement it yourself (seeing that you said that it is simple after all), please feel free to open an issue on the repo and create a pull request.
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: PM should probably support Array.prototype.findLast/findLastIndex

Unread post by Moonchild » 2023-01-12, 16:02

[quote=Nuck-TH post_id=235536 time=1673527930 user_id=20048]
There are more important developments to do than chase every new shiny.
[/quote]
==
[quote]"Thanks for pointing this out, we'll certainly keep it in mind for future implementation. We probably can't get round to it right now with dispatch because we're very busy with existing development but we'll put it on the list for the future. Here's a link to the issue I've filed for it: xxx"
[/quote]



Thanks for pointing this out, we'll certainly keep it in mind for future implementations. This is low priority since it is not even in the standards yet. We can't get around to it right now because we're very busy with existing development that has higher priority, but if you want to help out you are more than welcome to file an issue and work on an implementation. Here's a link to the code foundry to get started: https://repo.palemoon.org/
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: PM should probably support Array.prototype.findLast/findLastIndex

Unread post by Moonchild » 2023-01-18, 12:45

As a side note. "array.findlast" is ES2023 spec. If you want to talk about "new and immature shinies", this is the definition of it.
I don't think it would be particularly difficult to add as a self-hosted function so yes, you could help out with this even if you are very limited in your coding experience.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

BenFenner
Astronaut
Astronaut
Posts: 588
Joined: 2015-06-01, 12:52
Location: US Southeast

Re: PM should probably support Array.prototype.findLast/findLastIndex

Unread post by BenFenner » 2023-01-19, 22:18

jez9999 wrote:
2023-01-12, 12:07
As Array.prototype.findLast/findLastIndex are supported in all major browsers now and have become a stage 4 proposal,
You said it yourself, it's a proposal. So not a standard. Pale Moon should continue to aim to be standards complaint. Which means NOT implementing this feature until it is standard[ized].

Locked