[swift-evolution] Adding custom attributes

2015-12-26 Thread Radosław Smogura via swift-evolution
Hello Swift Team, As it’s my first post on this mailing list, let me introduce my self. My name is Radek Smogura, and for 10 year I work as developer, mainly Java and I know C and C++. I would like to join Swift community and work on Swift language. Previously for hobby I added properties synt

Re: [swift-evolution] Adding custom attributes

2015-12-26 Thread Radosław Smogura via swift-evolution
So, What do you think about syntax like this: // Declaration @AttributeUsage(RUNTIME) //Can be SOURCE - attribute not emitted into binary @AttributeTarget(PROPERTY) //Other CLASS, ENUM, METHOD, INIT @attribute JSONProperty { var name:String!; var serializable:Bool? = true; var deserializable:Bool

Re: [swift-evolution] Adding custom attributes

2015-12-26 Thread Radosław Smogura via swift-evolution
Hi Dimitir, Thanks for your questions, as you pointed me to deeper considerations and better description of idea. > On 26 Dec 2015, at 16:20, Dmitri Gribenko wrote: > > On Sat, Dec 26, 2015 at 3:59 PM, Radosław Smogura wrote: >> So, >> >> What do you think about syntax like this: >> >> // D

Re: [swift-evolution] Adding custom attributes

2015-12-26 Thread Radosław Smogura via swift-evolution
> On 26 Dec 2015, at 19:57, JOSE MARIA GOMEZ CAMA wrote: > > Dear all, > > Let me answer inlined. > >> El 26/12/2015, a las 19:15, Radosław Smogura via swift-evolution >> escribió: >> >> Hi Dimitir, >> >> Thanks for your questions, as

Re: [swift-evolution] swift-evolution Digest, Vol 1, Issue 237

2015-12-27 Thread Radosław Smogura via swift-evolution
I think that throwing out our effort is bed idea. Waiting for reflection system may cause that implementation of attributes will be impossible - both of those things should be done together! Maybe it would be good to work on agile, iterative bases? What do you think about defining for MVP - par

Re: [swift-evolution] [Proposal] Lexical scope statement (with .. do)

2015-12-27 Thread Radosław Smogura via swift-evolution
Hi, That’s a great idea! Kind regards, Radek > On 27 Dec 2015, at 21:10, Taras Zakharko via swift-evolution > wrote: > > Quite often, one needs to perform a number of operations on a single object > (e.g. call up a bunch of configuration or action methods). This proposal is > to extend the

Re: [swift-evolution] [Proposal] Lexical scope statement (with .. do)

2015-12-27 Thread Radosław Smogura via swift-evolution
Hi, Please find my comment in body: BR, Radek Smogura > On 27 Dec 2015, at 22:08, Taras Zakharko wrote: > > >> On 27 Dec 2015, at 21:55, Mosab Elagha > > wrote: >> >> Agreed, this seems like a great idea. Looks like it would also allow for a >> lot of customizat

Re: [swift-evolution] Adding custom attributes

2015-12-28 Thread Radosław Smogura via swift-evolution
time. Attribute destination is described by following enum: enum AttributeAvailibility { case SOURCE case COMPILE case RUNTIME } > On 26 Dec 2015, at 20:31, Radosław Smogura via swift-evolution > wrote: > > >> On 26 Dec 2015, at 19:57, JOSE MARIA GOMEZ CAMA > <m