Re: [csswg-drafts] [css-values] Add round()/floor()/ceil() functions (#2513)

The CSS Working Group just discussed `update on mod() function`.

<details><summary>The full IRC log of that discussion</summary>
&lt;dbaron> Topic: update on mod() function<br>
&lt;TabAtkins> https://twitter.com/tabatkins/status/1219936010961915905<br>
&lt;emilio> ScribeNick: emilio<br>
&lt;astearns> github: https://github.com/w3c/csswg-drafts/issues/2513<br>
&lt;emilio> TabAtkins: so the poll I started yesterday about mod has ended<br>
&lt;emilio> ... had some fair results, and the contradictory results I expected<br>
&lt;emilio> ... so 3/2 in favor of JS, 9/1 in favor of math, depending on how you ask<br>
&lt;emilio> ... so the conclusion is that most people just write buggy code and they think / want math semantics<br>
&lt;fantasai> /JS/JS semantics if you ask directly/<br>
&lt;emilio> ... there's also a lot of discussion in the replies about use-cases<br>
&lt;jensimmons> link to poll??<br>
&lt;fantasai> s/favor of math/favor of math if you ask them about a basic computation/<br>
&lt;emilio> ... and it seems math is a better suit to fix those use cases<br>
&lt;emilio> jfkthame: would people be better off with explicit is-odd / even functions<br>
&lt;fantasai> https://twitter.com/tabatkins/status/1219936010961915905<br>
&lt;fantasai> https://twitter.com/tabatkins/status/1219936010961915905<br>
&lt;emilio> TabAtkins: they sometimes use it as a proxy for odd / even, but it's not general of course<br>
&lt;TabAtkins> https://twitter.com/tabatkins/status/1219939184682717184<br>
&lt;emilio> TabAtkins: so no decision for now yet unless the room is convinced, but worth thinking about it and we can peek this up at a later call<br>
&lt;emilio> TabAtkins: how does the room feel? Did anyone change their mind?<br>
&lt;emilio> myles_: I guess there's a third option which is not defining what negatives does<br>
&lt;emilio> TabAtkins: that's what C++ does and that's evil<br>
&lt;emilio> myles_: I didn't mean to return unicorns but just explicitly return 0 or something<br>
&lt;emilio> TabAtkins: it seems negatives could be common, I wouldn't want that<br>
&lt;emilio> Rossen: seems not many opinions have changed so let's move on<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2513#issuecomment-577642779 using your GitHub account

Received on Thursday, 23 January 2020 11:31:22 UTC