News for hackers. Stuff that matters.
Re:Less is more: language features by thomasfoster96 on Monday April 13, 2015 @09:20PM (#9371537)
I think it's worrying if language design ever becomes about having higher and higher level features 'protecting' the programmer from making mistakes, at the cost of losing access to lower level features that are considered harmful. Higher level features are much better than a GOTO 99% of the time, but there's always going to be 1% of the time when a GOTO might be better.
Re:Less is more: language features by derefr on Monday April 13, 2015 @09:40PM (#9371591)
There's no need for the two things to be at odds. Look at Rust's unsafe blocks, for example—or C's asm blocks, for that matter. A language can let you have your cake (or safety), and eat it (or skirt it) too.
Re:Less is more: language features by IndianAstronaut on Monday April 13, 2015 @10:25PM (#9371740)
Protecting the programmer is a good sell to corporations though. Less chance of error prone production code, easier for people to develop with, etc.
Re:Less is more: language features by alexchamberlain on Tuesday April 14, 2015 @02:41AM (#9372478)
The same corporations that use the Linux kernel, various database engines and various language runtimes, all of which contain C or C++, many platform specific byte manipulations and various other unsafe features?
Re:Less is more: language features by tormeh on Tuesday April 14, 2015 @03:42AM (#9372673)
Have you used Linux lately? It's always close to falling apart, in my experience. That the developers are doing a heroic job of keeping all the unsafe parts under control does not mean this is a good idea for the rest of us.
Re:Less is more: language features by alexchamberlain on Tuesday April 14, 2015 @04:46AM (#9372906)
I use it daily, both personally, for development and in production. Performs better than commercial nix and Windows IMHO; cannot comment on BSDs or Mac.