News for hackers. Stuff that matters.
Re:C++ coroutines: Initial implementation pushed to master by gumby on Monday January 20, 2020 @11:26AM (#22099903)
What is the difference to you if I pass a private object or a public object all of whose instance variables and methods are private? Either way the point is to say “this is not your object to manipulate”. But making it a type you cannot even express makes that far more explicit.
Re:C++ coroutines: Initial implementation pushed to master by yati on Monday January 20, 2020 @02:39PM (#22101507)
I see, I guess then that's where we disagree. It is very confusing for people from my limited experience, for little gain. Plus you make it harder to do things like put these tokens in e.g., a vector without resorting to decltype.

Going back to the original point i was making with this example, I still think this was probably not a capability consciously designed in the language.