[Freeciv-Dev] Re: Split patch (was Re: [RFC PATCH] init_techs)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 1 Oct 2001, Reinier Post wrote:
> On Sun, Sep 30, 2001 at 07:51:10PM -0400, Ross W. Wetmore wrote:
> > But I think it has been said many times that such flexibility is not
> > required for Freeciv. It would be a wise move to really look at the
> > pros and cons before introducing such parse elements into any future
> > command syntax design.
>
> I agree, neither the ; or the ability to let commands continue on the
> next line seem required. It's just nice to have.
It seems to me that the cases in which this could be very nice are those
which are concetually multiline anyways (such as oject
initialization). How about allowing braces, which combine several
commands into an argument? So, for example:
create tech.hacking { #Needed for internet
set req1 computers; set req2 theology
set name "Hacking"
}
Would create a namespace tech.hacking and then use it as a root namespace
for the following commands. (The simplest parsing routine would probably
make there be four commands, the first of them of length zero. This
command should simply do nothing.)
--Daniel Speyer
"May the /src be with you, always"
>
> --
> Reinier
>
>
- [Freeciv-Dev] Re: Split patch (was Re: [RFC PATCH] init_techs), Justin Moore, 2001/10/05
- [Freeciv-Dev] Re: Split patch (was Re: [RFC PATCH] init_techs), Raimar Falke, 2001/10/05
- [Freeciv-Dev] Server Overhaul (was Re: Re: Split patch), Justin Moore, 2001/10/18
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Raimar Falke, 2001/10/19
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Justin Moore, 2001/10/19
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Raimar Falke, 2001/10/19
- [Freeciv-Dev] Re: Server Overhaul (was Re: Re: Split patch), Arien Malec, 2001/10/19
|
|