Markup Builder in Smalltalk

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

Markup Builder in Smalltalk

Torsten Bergmann
> More or less exactly the same..except the syntax..

I think the syntax in my XMLWriter package is more oriented towards clean
Smalltalk, while yours reminds me on some cryptic languages I used
in the past ;)

What does #mbAttr: mean, "markup builder" or "my bytes" or ...?

I will never understand why people invent languages to save
bytes in writing/typing...especially after autocompletion was invented.

>see means of merging the frameworks for best use..

I doubt I will accept this syntax style. So it is better when you
provide an own package.

An additional idea:
===================
I can also imagine another kind of XMLBuilder where one can use the
DNU trick to write any tag (with all the pro and cons of the DNU hack):

builder := XMLBuilder xml.
builder person: [
 builder
      name: 'Luke';
      planet: 'Moon' number: 12]
builder xml

then results in

<xml>
  <person>
     <name>Luke</name>
     <planet number="12">Moon</planet>
  </person>
</xml>

 
Bye
T.
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project