OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cti-cybox message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Email Object


For the record, I really dislike it when a property can be one of two types depending on the value of some other property. For example, we have the following two properties:

"is_multipart" boolean
"body" string or list of type mime-part-type

So if "is_multipart" is false then "body" is a [string]  however, if "is_multipart" is true then "body" is a [list of type mime-part-type].  

It seems like a much simpler way of doing this is to have two properties for the body...  

1) body
2) body_multipart

If you still want the boolean property of is_multipart, that is fine.  But lets not overload properties based on the value of another property.  PLEASE...


Thanks,

Bret



Bret Jordan CISSP
Director of Security Architecture and Standards | Office of the CTO
Symantec
PGP Fingerprint: 63B4 FC53 680A 6B7D 1447  F2C0 74F8 ACAE 7415 0050
"Without cryptography vihv vivc ce xhrnrw, however, the only thing that can not be unscrambled is an egg." 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]