idea: allow canvas tag attributes to be specified before tag

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

idea: allow canvas tag attributes to be specified before tag

keith1y
Thinking out loud:

starting with
the nice a concise form
html div: [  html with: 'hello world' ]

if I want to add a class or id this becomes

html div class: 'label'; with: [  html with: 'hello world' ]

I know it is only one less with, but might it be useful to allow some
attributes to be set in anticipation of using a tag.

html class: 'label'; div: [ html with: 'hello world' ].

?

Keith

       
       
               
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: idea: allow canvas tag attributes to be specified beforetag

Boris Popov, DeepCove Labs (SNN)
I'm not convinced sacrificing readability in favor of saving a handful of
characters from being typed pushed the cause any further. As far as my
thinking model is concerned is certainly easier to comprehend a sequence of
events where something gets created and then configured as opposed to
configuration of a non-existing component-from-the-future.

That, plus the brushes would no longer define the 'available' attributes in
the first place, so you could easily end up with semantically incorrect HTML
like,

html
 url: 'http://www.yahoo.ca';
 div: [html text: 'Hello']

whereas trying to do the same in the current system will properly notify you
(DNU) about the issue,

html div
 url: 'http://www.yahoo.ca';
 with: [html text: 'Hello']

Just my $0.10 for the 5 characters that we saved ;)

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Keith
Hodges
Sent: Thursday, June 15, 2006 7:40 AM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: [Seaside] idea: allow canvas tag attributes to be specified
beforetag

Thinking out loud:

starting with
the nice a concise form
html div: [  html with: 'hello world' ]

if I want to add a class or id this becomes

html div class: 'label'; with: [  html with: 'hello world' ]

I know it is only one less with, but might it be useful to allow some
attributes to be set in anticipation of using a tag.

html class: 'label'; div: [ html with: 'hello world' ].

?

Keith

       
       
               
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and
ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

smime.p7s (4K) Download Attachment