On Wednesday, 12 October 2016 10:23:34 UTC+3, Juha Nieminen wrote:
> Öö Tiib <
oot...@hot.ee> wrote:
> > When type of what a function returns does not matter?
>
> Do you care, for example, what the exact type that std::bind() returns is?
> Or do you only care what it *does*?
Now we are getting to philosophical ground and how I think. My view is
not universal, other people may think differently. A "type of it" *is* for
me "what it does". I dont know what 'std::bind' returns (because I use
lambdas that do same and more), but I assume that it is anonymous
functor type (similar like with lambdas).
So "type" for me is not "typename". However I like that types have name.
For example I liked that C++ did disallow anonymous structs and unions
and I disliked witdespread extension that allows those. If we can't name
something then it is probably too dim for us in essence and we need to
think more about it. Why type of value returned by 'std::bind' can not be
concretely 'std::lambda' or something like that? Fortunately there are
'decltype' and 'std::result_of' so I can name types myself when I want
names.
>
> > It is possible that there won't ever be C++17 and also no one knows
> > what it will be. C++14 already did bring more damage than benefits.
> > Currently it seems that in committee are left only saboteurs from
> > companies like Apple, Oracle, Google, Microsoft, Amazon and IBM
> > that try to screw with it to each other. Perhaps we should boycott
> > those companies.
>
> Ah, you are only joking, I see.
Somewhat. I am seriously worried about future of C++. Feeling is that
there are good ideas what to add but then they are adding syntax sugar
perversions instead. Why? The only rational explanation to it is sabotage.