News for hackers. Stuff that matters.
Re:C++14 lambda tutorial by crazypyro on Thursday August 28, 2014 @10:48AM (#8237436)
Isn't that literally a core principal of Python? They enforce all kind of coding styles within the language, not the mention all the PEPs.
Re:C++14 lambda tutorial by leni536 on Thursday August 28, 2014 @11:50AM (#8237813)
But PEPs are not enforced in the language level. Also there are cases where there could fit two simple expression in a lambda. Also the language still doesn't stop you from abusing lambdas, you can nest them. It could be stated in one of the PEPs that "no overly complicated lambdas" and that's it, there is no need for the language to enforce this.
Re:C++14 lambda tutorial by crazypyro on Thursday August 28, 2014 @01:23PM (#8238485)
PEPs are literally the language, in my opinion. It may not be enforced on an implementation level, but some have been. You can't mix spaces and tabs now. That seems like a style choice being enforced on every level.