🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.protocols.iso
2 messages
2 total messages Started by Alexandre Sasha Polozoff Fri, 14 Aug 1992 02:23
Using one syntax for more than one attribute - comments?
#468
Author: Alexandre Sasha Polozoff
Date: Fri, 14 Aug 1992 02:23
37 lines
1537 bytes
We are having an rather simple dilemma which I would like some comments
from others.

The grammar may not be complete, just as an example.

Consider we have a syntax as follows:

aSyntaxForNames :: = GraphicString

Now we have two attribute templates which are going to both use the
same syntax.

userName	ATTRIBUTE
	WITH SYNTAX		Our_syntax.aSyntaxForNames
	etc...


computerName   ATTRIBUTE
	WITH SYNTAX		Our_syntax.aSyntaxForNames
	etc...

== OR ==

We could have two syntaxes

userNameSyntax ::= GraphicString
computerNameSyntax ::= GraphicString

and reference these syntaxes instead.

Comments?  Ideas?  We can't decide which way is (so to speak) better
or more correct than another way.

---------------------------------------------------------------------------
Alex Polozoff      512/218-1178       Internet    asp@trail.sharpstone.com
Sharpstone Trail Productions          Compuserve  73467,252
Austin, Texas USA                     OSI Network Management Products                        
Re: Using one syntax for more than one attribute - comments?
#470
Author: Harald Tveit Alvestrand
Date: Sun, 16 Aug 1992 19:38
26 lines
1447 bytes
In article <01050130.b0ta21@trail.sharpstone.com>, asp@trail.sharpstone.com (Alexandre Sasha Polozoff) writes:
....example deleted...
|> 
|> Now we have two attribute templates which are going to both use the
|> same syntax.
|> 
|> == OR ==
|>
|> We could have two syntaxes
|> and reference these syntaxes instead.
|> 
It depends on the application.
But if this was, for instance, Directory, I would strongly suggest that
you keep the number of separate names as low as possible.

You should only use separate names for things when there is a need to actually
distinguish between the two objects, as for instance if the name syntax was
the only thing that set a human apart from a computer (not good design,
I think).

My opinion only.....
-- 
                   Harald Tveit Alvestrand
Harald.Alvestrand@delab.sintef.no
C=no;PRMD=uninett;O=sintef;OU=delab;S=alvestrand;G=harald
+47 7 59 70 94
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads