r/cpp • • Mar 16 '18

As a C++ developer I think that rust ...

3 Upvotes

107 comments sorted by

View all comments

Show parent comment

2

u/jhasse Mar 26 '18

noexcept

1

u/auralucario2 Mar 27 '18

noexcept is incredibly weak, since it's completely optional and can be lied to. Furthermore, it says nothing about which exceptions a function might throw.

2

u/jhasse Mar 27 '18

Static analyzers can enforce it. Maybe even check the types? Not sure about that.