Community
Participate
Working Groups
It would be useful that the prefix used to reference to an imported package in a MTL module to be defined by the user. The enhanced syntax would be like: <mtl> module Mod1(mymm1='http://example.org/mm1/1') </mtl> Note. This feature is similar to xml namespaces. e.g. <elem xmlns:mymm1='http://example.org/mm1/1'> <mymm1:A/> </elem>
(In reply to comment #0) > The enhanced syntax would be like: > <mtl> > module Mod1(mymm1='http://example.org/mm1/1') > </mtl> I think module Mod1(mymm1:'http://example.org/mm1/1') would be more consistent with other name:type declarations.
(In reply to comment #1) > (In reply to comment #0) > > The enhanced syntax would be like: > > <mtl> > > module Mod1(mymm1='http://example.org/mm1/1') > > </mtl> > > I think > > module Mod1(mymm1:'http://example.org/mm1/1') > > would be more consistent with other name:type declarations. The syntax name:Type is used to declare new local variables and parameters, with the given name. ( <variable> ':' <type> ) In the case at hand the name is just an alias for an *existing* package (hence the equivalence '=' sign ). IMHO, using the same syntax would be confusing.
Could be interesting for disambiguation of types sharing the same namespace as well.