Re: [swift-evolution] [swift-evolution-announce] [Review] SE-0144: Allow Single Dollar Sign as a Valid Identifier

2016-10-19 Thread Brent Royal-Gordon via swift-evolution
> On Oct 14, 2016, at 12:59 PM, Chris Lattner  wrote:
> 
>   
> https://github.com/apple/swift-evolution/blob/master/proposals/0144-allow-single-dollar-sign-as-valid-identifier.md

>   * What is your evaluation of the proposal?

I know this is cutting against the grain, but I'm in favor.

I don't think the Dollar library is a good design, but I think there *are* good 
designs which could use an extremely short, distinctive identifier like `$`. 
These would be cases where there is a single, specific object, operation, or 
type which is absolutely central to the problem domain. jQuery is a good 
example of this: it is used in browsers, where DOM manipulation is such a big 
part of what you're doing that an extremely shorthanded syntax is appropriate. 
Other examples might include parsing or generating strings. In general, 
anything where a Swift file is effectively "embedded" or acting as a "plugin" 
might benefit from `$`.

Certainly that is not most Swift code, but this is a harmless change when you 
don't need it, and a helpful change when you do. And certainly code using it 
may be a little sloppy unless there's preprocessing involved, but sometimes a 
sloppy solution is the most expressive one.

>   * Is the problem being addressed significant enough to warrant a change 
> to Swift?

Maybe. It certainly is possible to design around it by switching to a single 
identifier character, but few of those stand out in the same way `$` does.

>   * Does this proposal fit well with the feel and direction of Swift?

I think it does. Swift disfavors boilerplate, and the places I imagine `$` 
ought to be used are those where a longer name would introduce unacceptable 
amounts of boilerplate.

>   * If you have used other languages or libraries with a similar feature, 
> how do you feel that this proposal compares to those?

`$` is certainly a rather popular identifier in Javascript.

>   * How much effort did you put into your review? A glance, a quick 
> reading, or an in-depth study?

Not much more than a glance.

-- 
Brent Royal-Gordon
Architechies

___
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution


Re: [swift-evolution] [swift-evolution-announce] [Review] SE-0144: Allow Single Dollar Sign as a Valid Identifier

2016-10-16 Thread Fons Rademakers via swift-evolution

> 
>   * What is your evaluation of the proposal?

-1

>   * Is the problem being addressed significant enough to warrant a change 
> to Swift?

no

>   * Does this proposal fit well with the feel and direction of Swift?

no

>   * If you have used other languages or libraries with a similar feature, 
> how do you feel that this proposal compares to those?

perl feeling, don’t like it as part of a modern clear and concise language.

>   * How much effort did you put into your review? A glance, a quick 
> reading, or an in-depth study?
> 

quick reading.


> More information about the Swift evolution process is available at
> 


--
Dr. Fons Rademakers  CERN - European Organization for Nuclear Research
Chief Research Officer   1211 Geneve 23, Switzerland
CERN openlab Tel: +41227679248Mobile: +41754113742
--

___
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution


Re: [swift-evolution] [swift-evolution-announce] [Review] SE-0144: Allow Single Dollar Sign as a Valid Identifier

2016-10-14 Thread Kevin Ballard via swift-evolution
On Fri, Oct 14, 2016, at 12:59 PM, Chris Lattner wrote:
>   * What is your evaluation of the proposal?

-1. I agree with the reasons for removal, and do not consider the existence of 
a single library that depends on undocumented behavior to be sufficient reason 
for this change.

>   * How much effort did you put into your review? A glance, a quick 
> reading, or an in-depth study?

A quick reading.

-Kevin Ballard
___
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution


Re: [swift-evolution] [swift-evolution-announce] [Review] SE-0144: Allow Single Dollar Sign as a Valid Identifier

2016-10-14 Thread Hooman Mehr via swift-evolution
+1. I am in favor of keeping and documenting single dollar sign as a valid 
identifier.

I personally find it very convenient to have it as a valid identifier, although 
I don’t use Dollar library.

> On Oct 14, 2016, at 12:59 PM, Chris Lattner  wrote:
> 
> Hello Swift community,
> 
> The review of "SE-0144: Allow Single Dollar Sign as a Valid Identifier" 
> begins now and runs through October 18. The proposal is available here:
> 
>   
> https://github.com/apple/swift-evolution/blob/master/proposals/0144-allow-single-dollar-sign-as-valid-identifier.md
> 
> Reviews are an important part of the Swift evolution process. All reviews 
> should be sent to the swift-evolution mailing list at
> 
>   https://lists.swift.org/mailman/listinfo/swift-evolution
> 
> or, if you would like to keep your feedback private, directly to the review 
> manager.
> 
> What goes into a review?
> 
> The goal of the review process is to improve the proposal under review 
> through constructive criticism and contribute to the direction of Swift. When 
> writing your review, here are some questions you might want to answer in your 
> review:
> 
>   * What is your evaluation of the proposal?
>   * Is the problem being addressed significant enough to warrant a change 
> to Swift?
>   * Does this proposal fit well with the feel and direction of Swift?
>   * If you have used other languages or libraries with a similar feature, 
> how do you feel that this proposal compares to those?
>   * How much effort did you put into your review? A glance, a quick 
> reading, or an in-depth study?
> 
> More information about the Swift evolution process is available at
> 
>   https://github.com/apple/swift-evolution/blob/master/process.md
> 
> Thank you,
> 
> -Chris Lattner
> Review Manager
> 
> 
> ___
> swift-evolution-announce mailing list
> swift-evolution-annou...@swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution-announce

___
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution