[swift-evolution] Thoughts on replacing \() with $() or some other symbol

Brandon Knope bknope at me.com
Tue Jun 21 16:39:15 CDT 2016


I agree big time. It is pretty awkward to type and I completely understand the angst when having to type it!

$() seems like the better option, though maybe not as nice looking as \() (maybe it is on second thought?) it is much easier to type!

Brandon 
 
> On Jun 21, 2016, at 5:22 PM, Saagar Jha via swift-evolution <swift-evolution at swift.org> wrote:
> 
> %, at least to me, suggests distant evaluation; i.e. parameter passing at the end. $ seems more like an in-place evaluation, like how bash does it.
> 
>> On Tue, Jun 21, 2016 at 2:14 PM Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
>> That said, I think it's nice that \, #, $, and @ are all used in unique scenarios. What about going a little classical with %?
>>> On Tue, Jun 21, 2016 at 16:10 Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:
>>> 
>>> on Tue Jun 21 2016, Kenny Wyland <swift-evolution at swift.org> wrote:
>>> 
>>> > Hi all,
>>> >
>>> > I'm new to the list and I just searched through the archives as best I
>>> > could to see if someone else had already brought this up, but I didn't find
>>> > anything. Forgive me if this horse has been beaten.
>>> >
>>> > I find that typing \(var) is very disruptive to my typing flow. The more I
>>> > code in Swift, the more I like it, but every time I'm coding and then have
>>> > to hiccup while typing \ then ( causes me to be annoyed. I know, it's
>>> > minor, but it isn't a key combination that flows quickly.
>>> >
>>> > I would much rather have $() or perhaps ${} (like Groovy lang) or perhaps
>>> > @() to go along with other uses of @ throughout the language.
>>> >
>>> > A shifted key, like $ or @, followed by another shifted key like (, allows
>>> > for a much faster flow and they are much closer to the home keys than \
>>> > which is nearly as far from home keys as possible (and awkward).
>>> 
>>> I'm forced to agree that \ is quite awkward for something that may be
>>> used so pervasively, and $ would likely meet more peoples' expectations.
>>> 
>>> --
>>> Dave
>>> 
>>> _______________________________________________
>>> swift-evolution mailing list
>>> swift-evolution at swift.org
>>> https://lists.swift.org/mailman/listinfo/swift-evolution
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-evolution
> 
> -- 
> -Saagar Jha
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160621/69b2351d/attachment.html>


More information about the swift-evolution mailing list