Get the latest tech news
Cppfront v0.8.0
Highlights Changed license to Apache 2.0 with LLVM Exception With the changes below, notably to make the remaining tweaks for function syntax, I think version 0.8 is now stable enough to be ready f...
With the changes below, notably to make the remaining tweaks for function syntax, I think version 0.8 is now stable enough to be ready for a license that allows commercial use. For a function whose body is a single expression, the default return type (i.e., if not specified) is now-> forward _, which is Cpp1-> decltype(auto)(which, importantly, can deduce a value). But for those who liked that style, fear not, usually the answer is to just put the two characters{ } around the body... see examples in this commit, which I have to admit most are probably more readable even though I'm one of the ones who liked omitting the braces.
Or read this on Hacker News