[swift-evolution] rename dropFirst() and dropLast()
Dave Abrahams
dabrahams at apple.com
Thu Dec 31 10:41:11 CST 2015
> On Dec 29, 2015, at 10:23 PM, David Waite <david at alkaline-solutions.com> wrote:
>
> I do rather like that, although the thread stalled a week ago which is equivalent to 1 swift-evolution year :-)
>
> Is the current thinking that ā$ + 3ā and its ilk be a literal or computation returning some sort of Offset or Slice value, and SequenceType would define a subscript operation taking a Slice and returning an Element or SubSequence respectively?
Yes, something like that.
>
> -DW
>
>> On Dec 29, 2015, at 5:53 PM, Dave Abrahams <dabrahams at apple.com <mailto:dabrahams at apple.com>> wrote:
>>
>>
>>> On Dec 28, 2015, at 5:35 PM, David Waite via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>>
>>> If one were to rename dropFirst/dropLast, Iād love for prefix and suffix to be renamed also to better pair with the methods.
>>
>> I prefer to address this by creating a unified EDSL for describing all of these operations as discussed in this thread: Re: Proposal: Python's indexing and slicing <http://news.gmane.org/find-root.php?message_id=ED492767%2dE1ED%2d41D6%2d90A8%2dBCA9AC6D0F34%40apple.com>
>>
>> -Dave
>>
>
-Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151231/c962cd5f/attachment.html>
More information about the swift-evolution
mailing list