Commit Graph

238 Commits

Author SHA1 Message Date
Joe Groff
3a50d63ffd KeywordArguments proposal: Describe behavior with trailing closures.
Trailing closures get exceptions from the "required keyword for selector style argument" and "positional parameters must come before keyword parameters" rules.

Swift SVN r10415
2013-11-13 06:12:12 +00:00
Dave Abrahams
7315d38393 [proposals] OperatorMethods.rst: minor ReST fixup
Swift SVN r10358
2013-11-12 02:00:48 +00:00
Doug Gregor
b89f1fdae8 Minor tweaks to the initialization proposal
Swift SVN r10347
2013-11-11 23:35:47 +00:00
Joe Groff
ed252547c0 KeywordArguments proposal: Describe vararg keywords, note QoI issue with 'foo.bar:'
Swift SVN r10335
2013-11-11 19:10:56 +00:00
Doug Gregor
218d0224e9 Draft initialization proposal.
Swift SVN r10333
2013-11-11 18:15:01 +00:00
Joe Groff
8fc1dea287 KeywordArguments proposal revisions.
Define "named application" using AST peepholes instead of having different grammar productions; this is better for QoI and more flexible. For completeness, describe how named application lookup works with non-function decls.

Swift SVN r10332
2013-11-11 17:57:42 +00:00
Dave Abrahams
f08baf51a9 [proposals] Operator Methods (opportunity/2.0)
Recording an idea and its rationale.  No discussion/review necessary
at this time.

Swift SVN r10048
2013-11-08 20:01:01 +00:00
Joe Groff
5ba10e7978 KeywordArguments proposal: Some QoI details.
Swift SVN r10039
2013-11-08 16:25:12 +00:00
Joe Groff
2c90207004 Sketch out a new proposal for how keyword args should work.
Swift SVN r10033
2013-11-08 02:52:40 +00:00
Joe Groff
c6cfd804ff Remove CompoundNames proposal; we're going down a different path.
Swift SVN r10032
2013-11-08 01:34:27 +00:00
Dave Abrahams
1568c54160 [proposals] MutationModel.rst: fix a footnote
Churn complete; back to coding

Swift SVN r10012
2013-11-07 00:41:53 +00:00
Dave Abrahams
f63e16ff1e [proposals] MutationModel.rst: ReST cleanups
Swift SVN r10011
2013-11-07 00:39:30 +00:00
Dave Abrahams
1149141f9c [proposals] MutationModel.rst: edits to define formal language semantics and incorporate results of the last meeting
Some people might object to the way I've defined rvalue and lvalue,
but it just seemed to fall out of things.  I started by talking about
writable and read-only data, and then read-only lvalues, but it was
complicated until all those distinctions fell away and left me with
the basic rule: rvalues can't be mutated and lvalues can.

If theoreticians object, we can find another way to phrase it.

Swift SVN r10010
2013-11-07 00:25:12 +00:00
Dave Abrahams
b781191aa9 [proposals] MutationModel.rst: cleanup
ReST errors fixed, prose smoothed

Swift SVN r9930
2013-11-04 19:21:59 +00:00
Dave Abrahams
f03082f41a [proposals] ClassConstruction.rst: updates based on Doug's feedback
Swift SVN r9929
2013-11-04 18:28:35 +00:00
Joe Groff
010a12e639 CompoundNames proposal: specify when default args are evaluated...
...when evaluated as part of a partially-applied compound name.

Swift SVN r9923
2013-11-04 17:56:36 +00:00
Chris Lattner
f823a8b1ee typo
Swift SVN r9919
2013-11-04 16:43:34 +00:00
Joe Groff
74cd1186a8 CompoundNames proposal: more revisions.
Swift SVN r9914
2013-11-04 02:02:25 +00:00
Joe Groff
502748fc00 CompoundNames proposal: Revise in response to DaveA feedback.
Remove confusing references to old dot-paren syntax. Move the discussion of the use of unsugared compound names after describing their idiomatic sugared uses.

Swift SVN r9913
2013-11-04 01:29:17 +00:00
Dave Abrahams
a41500f962 [proposals] Mutation Model Draft
Will post formatted version Monday morning

Swift SVN r9912
2013-11-03 22:18:45 +00:00
Dave Abrahams
08b6181f4d [proposals] Class Construction Draft
Tries to keep simple things simple.  Will post formatted version Monday morning

Swift SVN r9911
2013-11-03 22:18:37 +00:00
Joe Groff
9d86770a1e Start putting together a complete proposal for how keywords and compound names should work.
I tried to work both Daves' proposals into one big proposal, and elaborate on interactions with other features like initializers, enums and default arguments I could think of. Comments appreciated!

Swift SVN r9910
2013-11-03 20:02:45 +00:00
Dmitri Hrybenko
91ce21666d Change 'func' keyword to 'def'
I tried hard find all references to 'func' in documentation, comments and
diagnostics, but I am sure that I missed a few.  If you find something, please
let me know.

rdar://15346654


Swift SVN r9886
2013-11-02 01:00:42 +00:00
Howard Hinnant
36e6f363f1 Further Vector -> Array migration. Also updated Array with several good suggestions from Dave A.
Swift SVN r9418
2013-10-16 20:48:24 +00:00
Joe Groff
684a588b9b Proposal for how to handle option sets.
Swift SVN r9323
2013-10-14 18:53:21 +00:00
Joe Groff
3d4c1251f1 Rename 'byref' attribute to 'inout'.
Swift SVN r8661
2013-09-25 20:56:52 +00:00
Joe Groff
823d2ced20 Enums.rst: Spot fixes.
Swift SVN r8658
2013-09-25 20:29:52 +00:00
Joe Groff
2219b8417a Enums.rst: ReST errors.
Swift SVN r8657
2013-09-25 20:27:52 +00:00
Joe Groff
5106cd5e7c Capture the current enum game plan in a proposal doc.
Swift SVN r8481
2013-09-20 04:20:33 +00:00
Howard Hinnant
810d2db1c6 Fix some minor type-o's and grammar mistakes.
Swift SVN r8401
2013-09-18 16:07:24 +00:00
Howard Hinnant
0a16b96587 Swift containers and value types
Swift SVN r8353
2013-09-17 21:20:35 +00:00
Doug Gregor
64ae92c4b4 Destruction of partially-constructed objects is required for any replacement of 'self'.
Thanks, Greg.


Swift SVN r8291
2013-09-16 20:29:45 +00:00
Doug Gregor
25bec36f9e Allow dynamic lookup through DynamicLookup.metatype.
Given an object of type DynamicLookup.metatype, allow us to find both
static and instance methods. 

Sema only; SILGen and IRGen changes to come.


Swift SVN r8290
2013-09-16 20:26:02 +00:00
Doug Gregor
918cf5fb7a Constructors and initialization proposal, first draft.
Swift SVN r8286
2013-09-16 18:57:19 +00:00
Ted Kremenek
8f5b8ccb02 Rename "This" to "Self" and "this" to "self".
This was not likely an error-free change.  Where you see problems
please correct them.  This went through a fairly tedious audit
before committing, but comments might have been changed incorrectly,
not changed at all, etc.

Swift SVN r7631
2013-08-27 21:58:27 +00:00
Chris Lattner
b2e75c5d07 add a readme to proposals. Remove PublicNSStringAPIs.html (it looks
like a collection of someone's random notes) and move NSString.rst to
proposals (also a collection of notes).


Swift SVN r7360
2013-08-20 05:41:53 +00:00
Chris Lattner
91ccedcbaa remove an old spreadsheet that has lost its utility and move another proposal out.
Swift SVN r7357
2013-08-20 05:28:22 +00:00
Chris Lattner
7bcd9ff49f move a bunch of proposals out to a new proposals subdir to avoid confusion of what is planned for swift and what is just blue sky concepts.
Swift SVN r7356
2013-08-20 05:26:16 +00:00