VOUnits: _another_ version, based on implementation feedback

Markus Demleitner msdemlei at ari.uni-heidelberg.de
Wed Nov 6 00:28:41 PST 2013


Hi List,

and apologies for receiving two mails -- I wanted to keep the two
threads separate.

On Tue, Nov 05, 2013 at 02:04:29PM +0000, Norman Gray wrote:
> On 2013 Nov 5, at 12:35, Markus Demleitner wrote:
> >> I _think_ that the idea of quoted function names was introduced (by me?) largely
> >> out of symmetry with the quoted units.  I can't (come to think of it) think of
> >> any reason why we'd want to distinguish 
> >> 
> >> log(Hz)
> >> 
> >> from 
> >> 
> >> 'log'(Hz)
> > 
> > Hm -- may I offer:
> > 
> > Python 2.7.3 (default, Jan  2 2013, 16:53:07) 
> > [GCC 4.7.2] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> log
> > Traceback (most recent call last):
> >  File "<stdin>", line 1, in <module>
> > NameError: name 'log' is not defined
> >>>> 'log'
> > 'log'
> 
> Are you in _favour_ of allowing quoted function names?!

No -- this was my attempt to say why 'log' and log should be
different.  And why one might give an error and the other not.

That in VOUnit, it is the unquoted one that should work and the
quoted one that should error out... well, VOUnits is not python.

Cheers,

        Markus



More information about the semantics mailing list