Re:Zig: a system language which prioritizes optimality, safe...
by necessity on Sunday August 28, 2016 @08:32PM
(#12379271)
Don't fix what's not broken.
[ Parent
| on HN ]
Re:Zig: a system language which prioritizes optimality, safe...
by wolf550e on Sunday August 28, 2016 @08:52PM
(#12379327)
Basically every deployed C codebase contains "undefined behavior".
Re:Zig: a system language which prioritizes optimality, safe...
by necessity on Monday August 29, 2016 @02:10AM
(#12380314)
Which is intended. Suggested reading: http://blog.regehr.org/archives/213
Re:Zig: a system language which prioritizes optimality, safe...
by majewsky on Monday August 29, 2016 @05:07AM
(#12380817)
But I will still always argue that it's a bad trade-off to make compiler construction slightly easier at the expense of insecure code all over the place.
Re:Zig: a system language which prioritizes optimality, safe...
by adamnemecek on Sunday August 28, 2016 @08:36PM
(#12379279)
C isn't broken?
Re:Zig: a system language which prioritizes optimality, safe...
by necessity on Monday August 29, 2016 @02:11AM
(#12380318)
Why would you think it is?
Re:Zig: a system language which prioritizes optimality, safe...
by adamnemecek on Monday August 29, 2016 @02:27AM
(#12380361)
Not memory safe, bad type system, terrible 'macro' system, no/minimal(C11) support for generics, minimal standard library, pretty verbose (it's hard to build any good abstractions), lack of functional programming support, undefined behavior. Dealing with dependencies and headers in any but the simplest of projects gets old really quickly. Just about bigger project I've seen abuses the language to some extent. The list goes on and on.
Re:Zig: a system language which prioritizes optimality, safe...
by theoh on Sunday August 28, 2016 @08:36PM
(#12379278)
I apologize in advance but...
"necessity"... Surely not THE "necessity", mother of invention?
I guess that would absolutely give you a veto on other people "scratching their own itches".
Snark aside, the issue is surely whether, if designing C now, the last 40 years of programming language theory would not have some impact.