Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60645 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66668 invoked from network); 21 May 2012 22:07:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2012 22:07:10 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:36512] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/69-16352-C8CBABF4 for ; Mon, 21 May 2012 18:07:09 -0400 Received: by wgbfg15 with SMTP id fg15so4431274wgb.11 for ; Mon, 21 May 2012 15:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6mLvM2Aidfh7yPezNTGkwf6brIKgdm2DiNmsfPi8DKE=; b=af43vbrXOfD/fo4x/3f6gkpASpT/P9e+kuu7ikIf0ex5q55ea6xtPJIRvYuuogkfwH dyUpSBaYLmLmDL8BzkmbNu8R2yxCfmvFEV4O3acnkyRPU9YRaNA9kDHT/iF/8Pq2CFWq VKgH5U/xdGkDZ66uR5oww96lLGxLxnmzy6iq4/UfdJAwvYOXm/8Eicif7xORMjDrU+NR Med7BJ9nOg/gL58Yu4gp3lsXl04ZBeFm7P75iOt2qS29LWGjcftR5zu7tHWYRiQbUp/W SjKiE+jfsgX5qSr1/7Smv7D2I0Bs9LudvyLXf+w4teljvyePPshl59LXitTGw/1yjH5d 9Urg== MIME-Version: 1.0 Received: by 10.180.97.3 with SMTP id dw3mr28670378wib.19.1337638025888; Mon, 21 May 2012 15:07:05 -0700 (PDT) Received: by 10.223.160.133 with HTTP; Mon, 21 May 2012 15:07:05 -0700 (PDT) In-Reply-To: References: <4FB0AE18.1060902@sugarcrm.com> <29C59974-B01A-4D38-825D-0243479B656F@strojny.net> Date: Mon, 21 May 2012 15:07:05 -0700 Message-ID: To: Rafael Dohms Cc: Gustavo Lopes , internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d044306545f01ca04c0931fc1 Subject: Re: [PHP-DEV] [VOTE] Vote change for empty() RFC From: kris.craig@gmail.com (Kris Craig) --f46d044306545f01ca04c0931fc1 Content-Type: text/plain; charset=ISO-8859-1 On Mon, May 21, 2012 at 2:48 PM, Rafael Dohms wrote: > On Mon, May 21, 2012 at 11:25 PM, Gustavo Lopes > wrote: > > > There is nothing unclear about "a 2/3 majority is required". 2/3 of all > the > > votes need not be a integer, but that doesn't mean you can't compare it > to > > an integer. If this still doesn't answer your question, please refer to > how > > this works in virtually every election in the world. > > > > So we are counting half people now, good i hear Tyrion the Imp going > around internals, good. > > But great that is an answer, an edgy one with unneeded aggressiveness > in my opinion, but i guess > someone had to ask and deal with the attitude. > > I'll just step away again. > > -- > Rafael Dohms > PHP Evangelist and Community Leader > http://www.rafaeldohms.com.br > http://www.phpsp.org.br > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I think what Stas was saying is that rounding is not actually necessary when 2/3 results in a non-integer because the number of people voting will always be an integer regardless. In other words, because the requirement is "it must be greater than or equal to" as opposed to just "must be equal to," then it's really a non-issue. For example, let's say that 10 people are voting. 2/3 majority is required. 6 people vote yes and 4 people vote no. That's 60% Because 60% < 60.666666...%, the vote fails. On the other hand, if 7 people vote yes and 3 vote no, then we're at 70%. And since 70% >= 60.666666...%, the vote passes. Notice how, in both cases, we did not need to round either of the numbers to do the comparison. It's either greater than or equal to the requirement or it's not. That being said, yeah the response you got did seem a bit overly hostile IMHO. --Kris --f46d044306545f01ca04c0931fc1--