//TODO: professional stuff of software engineer 1001010
Fix’n Array type syntax on the fly

Apple seems to be raising the bar on auto correcting code editor UI

From the code in the swift book

let emptyArray = String[]()

Soon after I typed it in, Playground prompted me to use the new syntax – AND FIX IT IN PLACE
A quick click transformed it to

let emptyArray = [String]()

Nice Apple, very nice.

Swift Playground Array Syntax Change Notice

 

 

Now if they would also do the Auto “Fix-it” for dictionary declarations 😉

 

-Jason De Arte

About

Categories: Swift Tags: , ,