[Laszlo-user] More on namespaces and XML schema...
jamesr
circlecycle at gmail.com
Fri Apr 13 09:16:01 PDT 2007
I'm not sure that anyone is suggesting this, but I feel the need to
write it anyway.
Aside from the validation of LZX (which the compiler does by virtue
of.. compiling it) I don't personally see a reason why LZX should
include namespaces as part of how to build a LZX document. Namespaces
help delineate area of a document that have different formats. In the
case of templating languages dealing with HTML, for instance,
namespaces are used to separate templating instructions from the
actual output, where those templating instructions are removed by
design. In the case of a database format, they are very important,
since data is context-free in the sense that one chunk of data may be
completely orthogonal to the next in purpose and form.
However, as a language it is not very likely (please, imagine a
scenario if you will) where LZX will commingle with other languages.
It's like putting PHP into a Python program. Sure, there are external
interfaces to allow them to speak, but because each has access to
it's own resources lexically, you won't see one line of PHP followed
by another line of python. Consider that in the data world this may
be the case, but for programming language?
I don't believe that namespaces should come anywhere near code that
describes programmatic operation. It increases the complexity of
reading the code and describing problems with no advantage in
allowing capability to mix declarative statements in a way that makes
sense.
My opinion only, thanks for reading :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070413/d4992e2c/attachment.html
More information about the Laszlo-user
mailing list