Commit Graph

104 Commits

Author SHA1 Message Date
Dave Abrahams
828bc90581 [docs] Miscellaneous ReST fixups
I don't know why my machine at home is suddenly being stricter than the
one at work, but it found these legitimate formatting mistakes.

Swift SVN r13635
2014-02-07 08:33:40 +00:00
Dave Abrahams
6886655e83 [proposals] EfficientSliceMutation.rst: ReST fixup
Swift SVN r13633
2014-02-07 07:48:50 +00:00
Joe Groff
445973ec09 Proposal for bridging NSArray to the Collection protocol.
Swift SVN r13371
2014-02-03 21:40:16 +00:00
Joe Groff
e7d5afafe2 Commit updated 'Failable Initializers' proposal.
Compared to the proposal sent out to swift-dev, this is updated in concordance with the design decisions we made in the 2014-01-21 meeting:

- "fail" is used as the keyword for construction failure.
- Details of how "self" is discarded on failure have been added. Not-fully-initialized objects are destroyed piecemeal, whereas full initialized objects are *released* rather than directly destroyed in case they have already been captured.

Swift SVN r12989
2014-01-27 07:18:45 +00:00
Dave Abrahams
c8f552921f Updated Access Control Proposal
Swift SVN r12267
2014-01-14 01:32:08 +00:00
Joe Groff
15c0d75e5e EfficientSliceMutation: Fill out with implementation details.
Swift SVN r12216
2014-01-12 18:11:03 +00:00
Dave Abrahams
28c74c5eab [proposals] Efficient Slice Mutation, Introduction
Swift SVN r12130
2014-01-10 19:26:06 +00:00
Dave Abrahams
2a36ab3588 [proposals] Basic Access Control (first draft)
Swift SVN r12129
2014-01-10 19:26:05 +00:00
Doug Gregor
23aeafc195 Finish switching "static" over to "type" in examples, proposals, etc.
Swift SVN r12048
2014-01-08 05:28:59 +00:00
Dave Abrahams
6ec92b2ca6 [proposals] Delete OperatorMethods.rst
This proposal doesn't really solve the problem for plain-ol' non-generic
users of containers, so it is now withdrawn.

Swift SVN r11926
2014-01-06 16:40:35 +00:00
Joe Groff
f51347b12c Add a proposal for C pointer argument interop.
Swift SVN r11920
2014-01-06 05:02:29 +00:00
Chris Lattner
6ef6af223d move mutability model doc out of proposals since it is basically
agreed to and in progress.


Swift SVN r11204
2013-12-12 19:30:22 +00:00
Dave Abrahams
7ab9d369aa [stdlib] Rename Char => UnicodeScalar
Swift SVN r10864
2013-12-05 17:30:37 +00:00
Dave Zarzycki
83f953b80a 15242776 docs: Replace "Slice" with "Array"
Swift SVN r10710
2013-12-01 08:16:54 +00:00
Dave Abrahams
b1ac7ba7a4 [docs] Fix all ReST/Sphinx warnings, turn sphinx warnings into errors
Also revert r10607, which this change obsoletes

Swift SVN r10611
2013-11-20 23:27:13 +00:00
Dmitri Hrybenko
81dc5deee8 Change 'def' keyword back to 'func'
Swift SVN r10522
2013-11-17 07:45:28 +00:00
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