Jump to content

So today at WWDC, Apple launched Swift, a new programming language poised to replace Objective-C as the main programming language on Apple's platforms like iOS and OS X.

It is going to use the same LLVM compile and runtime as Apple's  Objective-C implementation, this means that the two can live side-by-side in the same app.

Swift provides access to every Cocoa and Cocoa Touch features that developers are currently using from Objective-C.

Apple says that it is meant to "Unify the procedural and object-oriented portions of the language".It diverges from Objective-C in the syntax and more than that.

Swift features variable types like tuples and optional types.

Some of the highlights are :  

  • Closures(similar to blocks in objective-C) unified with function pointers
  • Tuples and multiple return values
  • Generics
  • Fast and concise iteration over a range or collection
  • Structs that support methods, protocols and extensions
  • Functional programming patterns

Apple notes how the language has variables that have to be initialized before use, arrays and integers that are checked for overflow and automatic memory management, all that because Swift was designed for "safety"

Swift is going to be integrated into Apple's updated Xcode IDE.A cool feature is that is is going to have an interactive "Playground" that allows you to edit the code and watch the changes in real time.Also the debugging console of Xcode now natively supports Swift syntax .

 

 

 

 

 

It's not a bug, it's an undocumented feature!

Link to comment
https://linustechtips.com/topic/161284-apple-launches-a-new-programming-language/
Share on other sites

Link to post
Share on other sites

haaaaaa

Current system - ThinkPad Yoga 460

ExSystems

Spoiler

Laptop - ASUS FX503VD

|| Case: NZXT H440 ❤️|| MB: Gigabyte GA-Z170XP-SLI || CPU: Skylake Chip || Graphics card : GTX 970 Strix || RAM: Crucial Ballistix 16GB || Storage:1TB WD+500GB WD + 120Gb HyperX savage|| Monitor: Dell U2412M+LG 24MP55HQ+Philips TV ||  PSU CX600M || 

 

Link to post
Share on other sites

I was pretty sure this is a repost. I saw it somewhere else on LTT in GD.

"If it has tits or tires, at some point you will have problems with it." -@vinyldash303

this is probably the only place i'll hang out anymore: http://linustechtips.com/main/topic/274320-the-long-awaited-car-thread/

 

Current Rig: Intel Core 2 Quad Q6600, Abit IN9-32MAX nForce 680i board, Galaxy GT610 1GB DDR3 gpu, Cooler Master Mystique 632S Full ATX case, 1 2TB Seagate Barracuda SATA and 1x200gb Maxtor SATA drives, 1 LG SATA DVD drive, Windows 10. All currently runs like shit :D 

Link to post
Share on other sites

I didn't see that post, excuse me for doing a repost, and if there are any Moderators/ Administrators online, they can delete this thread.

Admins are rarely online, if ever.

"If it has tits or tires, at some point you will have problems with it." -@vinyldash303

this is probably the only place i'll hang out anymore: http://linustechtips.com/main/topic/274320-the-long-awaited-car-thread/

 

Current Rig: Intel Core 2 Quad Q6600, Abit IN9-32MAX nForce 680i board, Galaxy GT610 1GB DDR3 gpu, Cooler Master Mystique 632S Full ATX case, 1 2TB Seagate Barracuda SATA and 1x200gb Maxtor SATA drives, 1 LG SATA DVD drive, Windows 10. All currently runs like shit :D 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×