[Prev][Next][Index][Thread]

# [SERVER] wishlist (was: logging)

- Date: Wed, 31 Jan 1996 03:33:54 PST
- From:
- Content-Type: text/plain; charset="us-ascii"

    Andrew>
    >with ($string_utils)
    >  x=:explode(argstr);
    >  y=.alphabet;
    >endwith
    >
    >You get the idea. You don't have to specify $string_utils over and over
    >if you use it a lot.

    I don't really see how this is better than:

    su = $string_utils;
    x = su:explode(argstr);
    y = su.alphabet;

    ...which is the common practice.

    Implementing the 'with/endwith' structure wouldn't really add any
    functionality, would probably add lots of parsing intricacies and reduce
    readability.
    Probably people would then complain about being restricted to 'just one
    default value', which has to be of 'just one data type'. Using local vars
    solves all this.

    What I think would be handy (and has been suggested already) is a way to
    undeclare vars, e.g. 'release(foo);'. OTOH, as was pointed out, doing 'foo
    = E_VARNF;' is almost as good. :)

    :goes to get some coffee, and to try to think why he wrote 'almost'.

    -------------------------------------------------------------
    Gustavo Glusman               Founder/administrator of BioMOO
    -- Gustavo@bioinformatics.weizmann.ac.il
    -- http://bioinformatics.weizmann.ac.il/Gustavo
    -- BioMOO: telnet bioinformatics.weizmann.ac.il 8888
               WWW:   http://bioinfo.weizmann.ac.il:8888

- Prev: [SERVER] restarting 1.7.9p2
- Next: Re: [SERVER] wishlist (was: logging)
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index