Re: [csswg-drafts] [cssom-view] Consider making scroll methods return promises (#1562)

In that case, I can't see any other situation where a Promise rejection would occur, which essentially reduces the Promise to just being a callback. This undermines its purpose, as Promises are intended to handle success and failure cases, not just one. If we’re only using it to signal success and merely aborting in failure scenarios, we strip away the robustness of the Promise pattern and lose the benefit of built-in error handling.

-- 
GitHub Notification of comment by webdevelopers-eu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1562#issuecomment-2415827475 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 16 October 2024 06:18:35 UTC