From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 7D330BBAF for ; Thu, 11 Mar 2010 14:34:39 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlsBABeAmEtDww+FkWdsb2JhbACOaYF1eYkeAQEBAQkLCgcTAx+sKoFhhSqIeAEEBAGEdgSDFw X-IronPort-AV: E=Sophos;i="4.49,620,1262559600"; d="scan'208";a="58566067" Received: from web111501.mail.gq1.yahoo.com ([67.195.15.133]) by mail4-smtp-sop.national.inria.fr with SMTP; 11 Mar 2010 14:34:38 +0100 Received: (qmail 67713 invoked by uid 60001); 11 Mar 2010 13:34:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1268314476; bh=jBVXCSnAcK8FU6Uu0mGmNQuUEKeFsef4/wHjkZ467dA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=YOqNNqP78DemOIaZR3sYK1xuYZOHUPq+8RFiOMFepV7wgw2KhWwD6WMfOxaWOISwV6aNYpBAETyD4N6PP+VVIxBKA/yFtEt1bc3j5ywDVSMN7JUPJtl7HhtV/QjCcdt5Vp86RZE8l5AlZ+d9USxCg+WYlWBWmOh2JGjpKiZbfmc= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=sPux7vF1esAzVYn60Uo8/33A3juucYFp0WW6yzBNNCeDWkkkLTxp2Hloxg3b0Ui/GPDRakJmDk5Uhah05TNLTFo60AJEA/aP3bQL8zLrbBbEGPAoJvPJUxWOzgyM6BErIehBgGFw7cauBteqW0cb850oLWPdtswlZGy1PMS9cP0=; Message-ID: <594748.67259.qm@web111501.mail.gq1.yahoo.com> X-YMail-OSG: EzjCiwQVM1mdQFjYoWo8UTik01yAwnpF5ua6MYTkSW8jOi9 oZGBgQYFayyU3pkZX31BzBvS6HrTyG9.mio74BqKK940WH0eRgHcLLMa4qjA rmxsIxXQ3E2NbV86PgXMl8GkfXwYDf3dp0F35y3YqlbrPBKNgUnKrOgAzIbn eeeofeZ9iHF4Py85DUyWrA09rYBVtulFTMe1MEytQcsPV6whGf_chWQuJo21 Xzp9B0F2vzi_pzjfctcNvKGq72ou16vMzAoR7FKvkJJeHUulG16qWWQWexE5 RIEbiSbWAjZ0WgIC_Nbo8f6Q.afstgwOvVmIv2l22 Received: from [213.205.71.57] by web111501.mail.gq1.yahoo.com via HTTP; Thu, 11 Mar 2010 05:34:36 PST X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Thu, 11 Mar 2010 05:34:36 -0800 (PST) From: Dario Teixeira Subject: Re: [Caml-list] [ANN] CCSS 1.0 To: =?iso-8859-1?Q?Daniel_B=FCnzli?= Cc: caml-list@yquem.inria.fr In-Reply-To: <91a3da521003101309n5eadf89dt7e6e157e3dd14a3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; semantics:01 bug:01 semicolon:01 omitting:01 snippets:01 syntax:01 real-world:01 1.0:98 caml-list:01 normalize:01 arithmetic:01 arithmetic:01 fragments:01 fragments:01 declaration:02 Hi,=0A=0A> Unit aware is good but the classes should be broader. I find it= =0A> disappointing that it won't allow you to add mm to cm correctly, since= =0A> it's supposed to be unit aware.=0A=0AIt's unit-aware in the sense that= it knows that numeric values may have=0Athis thing called "units" attached= , and they impose some constraints on=0Aarithmetic, but it knows nothing ab= out the semantics and relation between=0Aunits.=0A=0AI understand why you m= ay see this as a bug, but for me it's a feature.=0APersonal experience tell= s me that mixing units -- even if they belong=0Ato the same system, as cm a= nd mm -- is asking for trouble (never mind=0Amixing units from metric and i= mperial -- ask NASA).=0A=0AWhile CCSS has no intention of being a CSS-lint,= it does enforce a couple=0Aof good-practices constraints. Forbidding unit= mixing is one of them;=0Aanother is ensuring each property declaration is = terminated by a semicolon,=0Aeven if it's the last one: again, experience t= ells me that omitting it=0Ais asking for trouble.=0A=0A =0A> From a user pe= rspective, it makes it much easier to copy paste=0A> snippets from here and= there without having to bother to normalize=0A> every length to a single u= nit.=0A=0AThat will be a good point if CCSS ever becomes popular and you wi= sh=0Ato copy'n'paste CSS fragments augmented with its syntax. But presentl= y=0Athat's a moot point, since the CSS fragments you find in the wild are n= ot=0Aaugmented with variable declarations and/or arithmetic.=0A=0ABut anywa= y, if you really think unit conversion is a must-have feature,=0AI can add = it to the next release (it's actually simple to implement).=0AHowever, pers= onally I remain sceptical about its real-world usefulness.=0A=0ABest regard= s,=0ADario Teixeira=0A=0A=0A=0A