[swift-evolution] Brace syntax

Alexander Regueiro alexreg at gmail.com
Sat Dec 19 20:26:57 CST 2015

I think you miss my point. In any case, it’s more stylistic consistency than fashion. Also, who wants to type braces? Your current philosophy seems to be to towards minimising syntax. So surely this is a matter of being consistent?

Also, if indenting code is good (universal) practice, and makes braces redundant without loss of readability, why keep them?

> On 20 Dec 2015, at 02:24, Félix Cloutier <felixcca at yahoo.ca> wrote:
> Python started in 1990 and Ruby started in 1995. Java started in 1996; C# in 2000; Go in 2010. These languages all use braces and are more recent than Python and Ruby. ALGOL 60, where 60 stands for 1960, didn't use braces either.
> To me, that's basically a fashion point. Given that this doesn't seem to open any new possibility over what we have, I wouldn't be in favor of it.
>> Le 19 déc. 2015 à 20:39:06, Alexander Regueiro via swift-evolution <swift-evolution at swift.org> a écrit :
>> Has anyone considered removing braces from the Swift language? The main alternative would be indentation-based scoping like in Python or Ruby. There already seems to be a general emphasis on conciseness,  lack of redundancy, and a modern syntax. e.g. semicolons are not required for single-line statements; brackets have been removed from if/for/while expressions, compared to C-style syntax. So, why not go the whole way in breaking the C-style connection? The present syntax seems to be shunning C, but only slightly.
>> Thoughts?
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-evolution

More information about the swift-evolution mailing list