Re: Annotations or custom attributes

2012-03-10 Thread Jacob Carlborg
On 2012-03-10 00:23, Andrei Alexandrescu wrote: P.S. Please don't overquote, you systematically do so. Thanks! I'll try to think about that. -- /Jacob Carlborg

Re: Annotations or custom attributes

2012-03-09 Thread Andrei Alexandrescu
On 3/9/12 4:24 PM, Steven Schveighoffer wrote: On Fri, 09 Mar 2012 19:05:00 -0500, Ary Manzana wrote: What are you talking about? Who are you talking to? :) Seriously, though, I think Andrej sometimes quotes *nothing* (no offense for picking on you Andrej), and couple that with the newsgro

Re: Annotations or custom attributes

2012-03-09 Thread Andrej Mitrovic
On 3/10/12, Steven Schveighoffer wrote: > I hope you realize I didn't mean it in a bad/condescending way :) No problemo! I don't take things too seriously around this place (or the internets in general). > But whose fault is it? I'd say it's the technology's fault. A newsgroup seems to be the e

Re: Annotations or custom attributes

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 08:07:47PM -0500, Steven Schveighoffer wrote: > On Fri, 09 Mar 2012 19:58:37 -0500, H. S. Teoh > wrote: > > >On Fri, Mar 09, 2012 at 07:24:34PM -0500, Steven Schveighoffer wrote: > >>Seriously, though, I think Andrej sometimes quotes *nothing* (no > >>offense for picking o

Re: Annotations or custom attributes

2012-03-09 Thread Steven Schveighoffer
On Fri, 09 Mar 2012 19:58:37 -0500, H. S. Teoh wrote: On Fri, Mar 09, 2012 at 07:24:34PM -0500, Steven Schveighoffer wrote: Seriously, though, I think Andrej sometimes quotes *nothing* (no offense for picking on you Andrej), and couple that with the newsgroup's seemingly random decision to s

Re: Annotations or custom attributes

2012-03-09 Thread Steven Schveighoffer
On Fri, 09 Mar 2012 19:53:29 -0500, Andrej Mitrovic wrote: On 3/10/12, Steven Schveighoffer wrote: Seriously, though, I think Andrej sometimes quotes *nothing* (no offense for picking on you Andrej), and couple that with the newsgroup's seemingly random decision to start a new thread, or

Re: Annotations or custom attributes

2012-03-09 Thread H. S. Teoh
On Fri, Mar 09, 2012 at 07:24:34PM -0500, Steven Schveighoffer wrote: > On Fri, 09 Mar 2012 19:05:00 -0500, Ary Manzana > wrote: > > >What are you talking about? > > Who are you talking to? > > :) > > Seriously, though, I think Andrej sometimes quotes *nothing* (no > offense for picking on you

Re: Annotations or custom attributes

2012-03-09 Thread Andrej Mitrovic
On 3/10/12, Steven Schveighoffer wrote: > Seriously, though, I think Andrej sometimes quotes *nothing* (no offense > for picking on you Andrej), and couple that with the newsgroup's seemingly > random decision to start a new thread, or put a reply at the same level, I > sometimes have no idea what

Re: Annotations or custom attributes

2012-03-09 Thread Steven Schveighoffer
On Fri, 09 Mar 2012 19:05:00 -0500, Ary Manzana wrote: What are you talking about? Who are you talking to? :) Seriously, though, I think Andrej sometimes quotes *nothing* (no offense for picking on you Andrej), and couple that with the newsgroup's seemingly random decision to start a

Re: Annotations or custom attributes

2012-03-09 Thread Ary Manzana
What are you talking about?

Re: Annotations or custom attributes

2012-03-09 Thread Steven Schveighoffer
On Fri, 09 Mar 2012 18:23:17 -0500, Andrei Alexandrescu wrote: On 3/9/12 8:30 AM, Jacob Carlborg wrote: As may serialization library Orange already does: http://dl.dropbox.com/u/18386187/orange_docs/orange.serialization.Serializable.html Look for "NonSerialized". Saw that after posting.

Re: Annotations or custom attributes

2012-03-09 Thread Andrei Alexandrescu
On 3/9/12 8:30 AM, Jacob Carlborg wrote: As may serialization library Orange already does: http://dl.dropbox.com/u/18386187/orange_docs/orange.serialization.Serializable.html Look for "NonSerialized". Saw that after posting. Cool! Andrei P.S. Please don't overquote, you systematically do so

Re: Annotations or custom attributes

2012-03-09 Thread Jonathan M Davis
On Friday, March 09, 2012 16:00:03 Manu wrote: > Okay, so the consensus is, it doesn't currently exist, but there is no real > resistance, and is tentatively planned? > Sounds good to me. I wouldn't really say that it's tentatively planned. I don't recall Walter ever weighing in on it at all, and

Re: Annotations or custom attributes

2012-03-09 Thread Manu
On 9 March 2012 19:23, Michel Fortin wrote: > On 2012-03-09 16:15:30 +, Andrei Alexandrescu < > seewebsiteforem...@erdani.org**> said: > > I think a good approach in D would be to define mixins that work in >> conjunction with the feature involved, for example: >> >> class A { >> int thi

Re: Annotations or custom attributes

2012-03-09 Thread Michel Fortin
On 2012-03-09 16:15:30 +, Andrei Alexandrescu said: I think a good approach in D would be to define mixins that work in conjunction with the feature involved, for example: class A { int thing; mixin(DoNotSerialize!"thing"); ... } or together: class A { mixin(DoNotSe

Re: Annotations or custom attributes

2012-03-09 Thread Manu
On 9 March 2012 18:15, Andrei Alexandrescu wrote: > On 3/9/12 2:56 AM, Manu wrote: > >> Does D have a nice way to add annotations or custom attributes to >> entities? >> >> In Java/C# for example, it is common to annotate things with useful >> compile time information. I'd like to be able to do th

Re: Annotations or custom attributes

2012-03-09 Thread Jacob Carlborg
On 2012-03-09 17:15, Andrei Alexandrescu wrote: On 3/9/12 2:56 AM, Manu wrote: Does D have a nice way to add annotations or custom attributes to entities? In Java/C# for example, it is common to annotate things with useful compile time information. I'd like to be able to do that in D on occasio

Re: Annotations or custom attributes

2012-03-09 Thread Gor Gyolchanyan
That's easy to implement and extremely ugly. On Fri, Mar 9, 2012 at 8:15 PM, Andrei Alexandrescu wrote: > On 3/9/12 2:56 AM, Manu wrote: >> >> Does D have a nice way to add annotations or custom attributes to >> entities? >> >> In Java/C# for example, it is common to annotate things with useful >

Re: Annotations or custom attributes

2012-03-09 Thread Andrei Alexandrescu
On 3/9/12 2:56 AM, Manu wrote: Does D have a nice way to add annotations or custom attributes to entities? In Java/C# for example, it is common to annotate things with useful compile time information. I'd like to be able to do that in D on occasion. For instance, I'm serialising some struct/cla

Re: Annotations or custom attributes

2012-03-09 Thread Manu
On 9 March 2012 17:20, bearophile wrote: > Manu: > > > Okay, so the consensus is, it doesn't currently exist, but there is no >> real >> resistance, and is tentatively planned? >> Sounds good to me. >> > > As far as I know there are no concrete ideas yet for the semantics and > precise usage of

Re: Annotations or custom attributes

2012-03-09 Thread bearophile
Manu: Okay, so the consensus is, it doesn't currently exist, but there is no real resistance, and is tentatively planned? Sounds good to me. As far as I know there are no concrete ideas yet for the semantics and precise usage of this feature. And I think there are different ideas regarding

Re: Annotations or custom attributes

2012-03-09 Thread Manu
Okay, so the consensus is, it doesn't currently exist, but there is no real resistance, and is tentatively planned? Sounds good to me. On 9 March 2012 15:42, Dmitry Olshansky wrote: > On 09.03.2012 14:56, Manu wrote: > >> Does D have a nice way to add annotations or custom attributes to >> entit

Re: Annotations or custom attributes

2012-03-09 Thread Dmitry Olshansky
On 09.03.2012 14:56, Manu wrote: Does D have a nice way to add annotations or custom attributes to entities? There is a potential for them. At least technically everything with @ in front of it was supposed to be an annotation (like @property). I think it's just, sort of, reserved for future.

Re: Annotations or custom attributes

2012-03-09 Thread Jacob Carlborg
On 2012-03-09 11:56, Manu wrote: Does D have a nice way to add annotations or custom attributes to entities? Unfortunately no. In Java/C# for example, it is common to annotate things with useful compile time information. I'd like to be able to do that in D on occasion. For instance, I'm seri

Re: Annotations or custom attributes

2012-03-09 Thread Alex Rønne Petersen
On 09-03-2012 11:56, Manu wrote: Does D have a nice way to add annotations or custom attributes to entities? Unfortunately, no. In Java/C# for example, it is common to annotate things with useful compile time information. I'd like to be able to do that in D on occasion. Yes. This is a very