[Opensim-dev] Command lines - use of hyphens and verb subject flipping

Dahlia Trimble dahliatrimble at gmail.com
Fri Aug 30 18:08:55 UTC 2013


I think the problem with verb-object is that the command handling code is
designed such that multiple modules can add additional commands when they
are instantiated, and Opensimulator uses the first word in the command to
dispatch the command to whatever module "owns" it. If it were verb-object
then it (currently) would not know how to dispatch the command as many
modules could share the verb. It might be possible to rewrite the command
dispatching code to handle the verb-object form but then existing modules
that are not in core would need to be updated or their registered commands
would not work.


On Fri, Aug 30, 2013 at 6:57 AM, R.Gunther <rigun at rigutech.nl> wrote:

> i agree verb-object is a bit confuseing with typeing compared to verb
> object.
> delete-region is for me not really logic, delete region is more clear.
>
>
> On 2013-08-30 15:32, Ai Austin wrote:
>
>> At 11:00 30/08/2013, opensim-dev-request at lists.**berlios.de<opensim-dev-request at lists.berlios.de>wrote:
>>
>>> I'm still not sure whether verb-object is better (e.g. send appearance)
>>> or object-verb (e.g. appearance send).
>>>
>>
>> I strongly vote for verb object in such computer script languages.
>>
>> This works well also where there are more than one main parameter too, as
>> that can get confusing otherwise. Its also the way most commands already
>> are.
>>
>> There are just a few hyphenated commands as you say.  I spotted
>> delete-region and remove-region
>>
>> command-script is an odd on as really its just run <script> script
>> <script>  or command <script> ? But its one I always seem to get wrong.
>>  Leaving in a few problematic ones with hyphen and non-hyphen versions, but
>> making the help text and documentation give the definitive one to move
>> forward with might be an approach?
>>
>>
>> ______________________________**_________________
>> Opensim-dev mailing list
>> Opensim-dev at lists.berlios.de
>> https://lists.berlios.de/**mailman/listinfo/opensim-dev<https://lists.berlios.de/mailman/listinfo/opensim-dev>
>>
>>
> ______________________________**_________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/**mailman/listinfo/opensim-dev<https://lists.berlios.de/mailman/listinfo/opensim-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20130830/0bc28bf2/attachment-0001.html>


More information about the Opensim-dev mailing list