Page 1 of 1

PM should probably support Array.prototype.findLast/findLastIndex

Posted: 2023-01-12, 12:07
by jez9999
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.

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

Posted: 2023-01-12, 12:52
by Nuck-TH
There are more important developments to do than chase every new shiny.

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

Posted: 2023-01-12, 13:09
by jez9999
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"

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

Posted: 2023-01-12, 13:19
by jobbautista9
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.

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

Posted: 2023-01-12, 16:02
by Moonchild
[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/

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

Posted: 2023-01-18, 12:45
by Moonchild
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.

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

Posted: 2023-01-19, 22:18
by BenFenner
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].