W3C home > Mailing lists > Public > www-svg@w3.org > June 2004

Re: path's d attribute - why not use parenthesis?

From: Chris Lilley <chris@w3.org>
Date: Sun, 6 Jun 2004 08:28:22 +0200
Message-ID: <1036302437.20040606082822@w3.org>
To: "Nate" <nate@adeptisoft.com>
Cc: www-svg@w3.org

On Sunday, June 6, 2004, 4:27:51 AM, Nate wrote:

N> I know the idea is to keep the file size as small aspossible but
N> I think if parenthesis were added (or maybe optional would bebest) it
N> wouldn’t add much to the file size and it would help
N> readabilityconsiderably.

N> Example:
N> <path d="M(150,150) l(0,0) a(75,75 0 1,0 150,150) z" />

N> That to me is easier to read, plus coming from PHPbackground the
N> M() and l() look like a function would, which is kind of whatthey are
N> anyway right?

You can use new lines if you are more concerned with readability than
file size.

<path d="M 150,150
l 0,0
a 75,75 0 1,0 150,150

 Chris Lilley                    mailto:chris@w3.org
 Chair, W3C SVG Working Group
 Member, W3C Technical Architecture Group
Received on Sunday, 6 June 2004 02:28:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:59 UTC