Re: PROPOSAL to close ISSUE-57: TypedLiteralConverter Failures and Exceptions

On Wed, 10 Nov 2010 20:28:10 -0500
Manu Sporny <msporny@digitalbazaar.com> wrote:

> TypedLiteral Conversion Algorithm:
> If a TypedLiteralConverter is registered for the .type of the
> typedliteral then try to convert it, if successful return the
> converted type (for instance a Date) in all other cases (including
> exceptions) return the TypedLiteral.

I'd have thought it more useful to return .value in other cases.
That's how DataContext.convertType works in the current WD.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Thursday, 11 November 2010 15:01:32 UTC