Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×

Comment Re:Exception Handling (Score 1) 337

They are exceptions with some of the negatives of exceptions removed.
1) They don't leak.
2) They are never "unhandled".
This is because the implementation is different from C style exceptions.

But in terms of what the feature is, they are exceptions. You would never put "doesn't have exceptions" in a cons column of a pros/cons list.

Comment Re:Tesla Autopilot development (Score 1) 337

Chris Lattner creates compilers and languages. So that's doubtless what he'll do at Tesla. Tesla has an NVidea board that is built for running neural networks, and does massive amounts of processing with Intel CPUs ARM cores and GPUs. Seems to me there's ample room for a language and compilers to deal with that, over and above whatever NVidia supply. A language for dealling with multiprocessing, neural networks and for creating AI rules. That sort of thing.

Comment Re:If this is open source... (Score 1) 337

I didn't suggest you put it out on multiple platforms. I suggested you port it to Windows, just Windows, since you claimed it wouldn't be difficult.

Now you're saying it is so difficult only a company could do it. Make your mind up.

As to doing it on your own, if it's too much work for your, get help. GitHub is there for you to both host the code and run the development as a team effort.

Comment Re:Increment and decrement (Score 1) 337

Fair enough, but those arguments were considered at the time and the balanced choice was made to remove.

Sure, I'd love to have the ? : operator.

Swift does have the conditional operator. Some people make the mistake of trying it and concluding it doesn't work. But they've neglected to seprate the ? from the condition with a space, and thus made the compiler think they were trying to unwrap an optional.

It also has the ?? : nil coalesing operator. Again spaces are required.

Comment Re:Any hope for more productive programming? (Score 1) 337

It's beginning to look to me like Functional Reactive Programming (FRP) is the next big change in the way software is created. And whilst Swift doesn't support that natively, there are a couple of libraries that do support it in as Swifty a way as possible: RxSwift and ReactiveCocoa.

I can't say any more than that, as I'm early on in learning about this topic.

Comment Re:Is Swift better than Objective-C for anything? (Score 1) 337

Programming becomes a pleasure again, once you get past the past the hurdle of learning Swifts new features and differences.

I'll give you 3.

Swift makes header files unnecessary. Aren't you sick of maintaining both a .h and a .m file for every class?

Swift makes handling of nulls explicit. In Obj-C any pointer could be nil, and mostly it's not clear if that is actually a meaningful thing, or whether you need to check for nil "Just in case". Swift's optionals mean you always define whether a "pointer" can be nil. And so when you come to use a value, you know whether you should be checking for nil or not.

object.method() calls are far easier to read when chained than [object method]. The Obj-C variety had one advantage that it required methods with multiple parameters to be named. And that was better than the anonymous parameters of most other languages back in the day. But Swift as a syntax that encourages named parameters without mandating them. Which is the best of both worlds.

Slashdot Top Deals

Take everything in stride. Trample anyone who gets in your way.

Working...