User talk:NiXman

Examples
Hi NiXman,

Could you add the examples at the end of a page? Having examples all over the place decreases readability and convenience. Also, it would be great if you could make the examples concise. Long examples are much harder to read and understand. Thanks! P12 12:22, 20 October 2011 (PDT)

Hi P12! I understand that the examples in the middle of the description decreases readability and convenience, but what about, for example, with examples to this page?: http://en.cppreference.com/w/cpp/language/explicit_cast If writing all the examples at the end of the page, how would they associate with a specific cast? And wouldn't that be a biggest obstacle to understanding?

Thanks!

P.S. I couldn't find the descriptions for std::begin, std::end, std::ref, std::cref. Where are they? And why did you replace std::endl by '\n' in my previous examples?

== http://en.cppreference.com/w/cpp/language/explicit_cast All the examples are dumped in a heap. Is it though somehow improving the readability? You, or Cubbi, should comment on them at least...


 * Hi, I'm not P12, but I changed endl to \n while I was fixing the UB in your example, since we use \n throughout, following Stroustrup and the general StackOverflow style concensus. As for descriptions you're looking for,, and ref/cref are in cpp/utility/functional, but not filled in yet. --Cubbi 14:35, 20 October 2011 (PDT)


 * As for examples piling up at the bottom of a multi-topical page, I have the same issue in my work-in-progress page . I was going to suggest splitting up into individual pages, once all casts get sufficiently detailed desctiptions, but it's up to P12. Perhaps we can just reduce the number of examples, this wiki is a reference, not a textbook. --Cubbi 14:48, 20 October 2011 (PDT)


 * I think we can as well split the explicit_cast page. As of memory_order, I really like what's there, though I have yet to carefully read everything. The examples seem to demonstrate the concepts in the least amount of code possible and thus very good.P12 15:04, 20 October 2011 (PDT)


 * Hi Cubbi.


 * > I changed endl to \n while I was fixing the UB in your example


 * About what example do you say?


 * your first const_cast example, where you modified the value of 3, was invoking undefined behavior and in fact produced different output between GCC and Clang++ --Cubbi 14:48, 20 October 2011 (PDT)


 * Hi again. I dumped them at the end of the article only temporarily. Haven't had time to clean up it yet. Sorry if that confused you.
 * I think about formatting these examples to something like what's below. The key is that the example cases themselves should be quite simple, demonstrating casts with least auxiliary code.


 * P12 14:49, 20 October 2011 (PDT)

==

You right Cubbi.

Ok P12, I`ll do it.

is_trivially_copyable
This version of is_trivially_copyable is rather unhelpful. The implementation status of this type trait in one compiler is not a substitute to its description. It's implemented in CLang++, by the way. --Cubbi 14:53, 24 October 2011 (PDT)

Hi Cubbi!

Today I've written the examples for "Type categories (C++11)" and "Type properties (C++11)". I can't write the desctiption for templates, because my english is not good enaugh. Till the end of the week I'll try to write the examples for all the  templates.

Regards!

Signing in discussions
Hi. Could you sign below what you write in discussions, so that it's possible to know who wrote what without looking at the page history? Signing is done by adding ~. Thanks! P12 11:26, 28 October 2011 (PDT)