<div class="gmail_quote">On 6 April 2012 18:17, Adam D. Ruppe <span dir="ltr"><<a href="mailto:destructionator@gmail.com">destructionator@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Friday, 6 April 2012 at 15:07:04 UTC, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But maybe the function approach has an<br>
effect on the simplicity of the expression for a simple attribute, like a single bool?<br>
</blockquote>
<br></div>
Meh, it is pretty similar:<br>
<br>
struct Serializable { bool yes; }<br>
bool Serializable(bool yes) { return yes; }<br>
</blockquote></div><br><div>Indeed. And with that in mind...</div><div><br></div><div><br></div><div>On 6 April 2012 17:56, Piotr Szturmaj <span dir="ltr"><<a href="mailto:bncrbme@jadamspam.pl">bncrbme@jadamspam.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
@Uuid("...")</div>interface MyIntf { }<br><br>without explicitly declaring Uuid as attribute. However, I don't see any usage for primitive types:<br><br>@5<br>@"s"<br>@false<br><br>I think that allowing values of structs, classes and _eventually_ enums should be enough.<br>
</blockquote><br class="Apple-interchange-newline"></div><div>I totally agree, although I don't know what enum's offer that can't be equally wrapped in a struct/class? They can probably be skipped as well.</div>