Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: aXML vs TT2

by anneli (Pilgrim)
on Oct 21, 2011 at 07:40 UTC ( #932832=note: print w/replies, xml ) Need Help??


in reply to aXML vs TT2

it will show the differences and advantage of aXML more clearly

Could you elaborate on the advantages? Here I can't see the advantage of the aXML variant; the TT2 one (to me) is more information dense, and the difference in syntaxes makes clear what's going into my output and what isn't; the aXML version makes it a lot more difficult to see.

Replies are listed 'Best First'.
Re^2: aXML vs TT2
by davido (Cardinal) on Oct 21, 2011 at 08:46 UTC

    That was my first thought too, anneli; Similar things should look the same, and different things should look different. And code and data are different things. Maybe I just haven't seen enough of it. But when the language extension starts looking like the data my internal alarm goes off telling me I've got to pay extra attention to keep things straight. I'm never thrilled when the internal alarm goes off. ;)


    Dave

      I just thought "Aaarrrggghhhh!!!! He's reinvented Cold Fusion!!!!" and then tried to claw my eyes out to make the horror go away.

        The similarity between aXML and Coldfusion is superficial. Whilst it is true that they use an initially similar appearing markup, aXML is far more expressive and flexible.

        In aXML tags are intended to be used heirarchically in unison with each other in a variety of ways, and the end programmer has complete control over their names and definitions which are perl subs stored in a hash table.

      Indeed; it's one failing of Lisp, in a way: too much homoiconicity is not necessarily a good thing -- you spend much of your time trying to work out where are the function calls, what are the arguments. Macros don't help, as you need to look at the callee, work out whether it's a function or macro, and in the case of the latter, whether or how it evaluates its arguments, in order to know if or when side effects will occur!

        Well, Lisp has enough merit to have survived literally for a handful of decades despite its aggravating characteristics. I don't know enough about aXML to know whether it would support currying, lambda functions, and other higher order utility that gives Lisp enough value to overcome the issues caused by blurring the distinction between data and code.


        Dave

        A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://932832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (None)
    As of 2021-10-17 02:40 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      My first memorable Perl project was:







      Results (71 votes). Check out past polls.

      Notices?