[swift-evolution] Brace syntax
Bart Whiteley
bwhiteley at gmail.com
Sun Dec 20 10:40:41 CST 2015
On Sat, Dec 19, 2015 at 6:39 PM, Alexander Regueiro via
swift-evolution <swift-evolution at swift.org> wrote:
> 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.
-1.
Please no. I've written a lot of Python. I much prefer Swift's strict
brace requirement.
More information about the swift-evolution
mailing list