Re: Messaging API and URI schemes (ISSUE-107)

On Feb 10, 2011, at 17:04 , Dominique Hazael-Massieux wrote:
> I think the difference between msg.create(type) vs msg.create(uri) is
> mostly cosmetic, but one clear advantage is that you don't need to add a
> new constant to handle a new message type, you "only" need to rely on a
> related URI scheme.

I don't know if it's all that cosmetic. If we use a type we have to define the way in which the other parameters are passed (e.g. to, cc, subject) whereas if we reuse a URI scheme presumably it knows how to carry its own information.

-- 
Robin Berjon - http://berjon.com/

Received on Friday, 11 February 2011 11:17:31 UTC