On 2013-11-21 08:46, Jonathan M Davis wrote:

You could use alias this and alias the Validated struct to the underlying
string, but if you did that, you'd probably end up having it escape the struct
and used as a naked string the vast majority of the time, which would
essentially defeat the purpose of the Validated struct.

Yeah, that's what needs to be avoided and is the reason "alias this" or a property returning the raw string cannot be used.

--
/Jacob Carlborg

Reply via email to