Hacker News new | past | comments | ask | show | jobs | submit login

>...I hope the committee ends up making the right call here.

WG21 hasn't been able to solve the restrict type qualifier, or make a better alternative, in over twenty years. IMO, hoping that WG21 adequately solves Safe C++ is nothing more than wishful thinking, to put it charitably.




Yeah, this one is so weird. You've been able to do that forever in C, and virtually all big compilers have this keyword in C++ as well, just named __restrict. Why is it so hard to get into the standard, at least for pointers? I can imagine that there are complex semantics with regards to references that are tricky to get right, but can't we at least have "'restrict" can only be used on raw pointer types, and it means the same thing as it does in C"?


I am intimately familiar with the dysfunctions of various language committees.

I never said it would be easy, or probable. But Iā€™m also the kind who hopes for the best.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: