You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Joris Van Remoortere <jo...@gmail.com> on 2014/09/22 19:30:06 UTC

Re: Review Request 25789: Variadic strings join

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25789/
-----------------------------------------------------------

(Updated Sept. 22, 2014, 5:30 p.m.)


Review request for mesos and Benjamin Hindman.


Changes
-------

Remove the "for c++11 and above" comments since variadic templates are now part of the configuration check.


Summary (updated)
-----------------

Variadic strings join


Repository: mesos-git


Description (updated)
-------

Add Variadic strings join.
There is a second version of the variadic join which takes a reference to a stringstream as a parameter. This is handy when strings::join is just a part of a larger string manipulation.


Diffs
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp a1702cd 
  3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp 51008e5 

Diff: https://reviews.apache.org/r/25789/diff/


Testing
-------

Ran make check for stout. Added test cases for join as these were missing.


Thanks,

Joris Van Remoortere


Re: Review Request 25789: Variadic strings join

Posted by Niklas Nielsen <ni...@qni.dk>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25789/#review54463
-----------------------------------------------------------


The last nits: looks good to me, but would like BenH to take a look :)


3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp
<https://reviews.apache.org/r/25789/#comment94605>

    How about renaming ss to 'stream' or something more descriptive? (Here and below)



3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp
<https://reviews.apache.org/r/25789/#comment94606>

    Same for 'val' - let's expand it to a full word. Here and below



3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp
<https://reviews.apache.org/r/25789/#comment94604>

    should be 4 space indent.


- Niklas Nielsen


On Sept. 23, 2014, 10:30 a.m., Joris Van Remoortere wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25789/
> -----------------------------------------------------------
> 
> (Updated Sept. 23, 2014, 10:30 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Add Variadic strings join.
> There is a second version of the variadic join which takes a reference to a stringstream as a parameter. This is handy when strings::join is just a part of a larger string manipulation.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp a1702cd 
>   3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp 51008e5 
> 
> Diff: https://reviews.apache.org/r/25789/diff/
> 
> 
> Testing
> -------
> 
> Ran make check for stout. Added test cases for join as these were missing.
> 
> 
> Thanks,
> 
> Joris Van Remoortere
> 
>


Re: Review Request 25789: Variadic strings join

Posted by Joris Van Remoortere <jo...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25789/
-----------------------------------------------------------

(Updated Sept. 25, 2014, 6:25 p.m.)


Review request for mesos and Benjamin Hindman.


Changes
-------

fix style issues.


Repository: mesos-git


Description
-------

Add Variadic strings join.
There is a second version of the variadic join which takes a reference to a stringstream as a parameter. This is handy when strings::join is just a part of a larger string manipulation.


Diffs (updated)
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp a1702cd 
  3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp 51008e5 

Diff: https://reviews.apache.org/r/25789/diff/


Testing
-------

Ran make check for stout. Added test cases for join as these were missing.


Thanks,

Joris Van Remoortere


Re: Review Request 25789: Variadic strings join

Posted by Benjamin Hindman <be...@berkeley.edu>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25789/#review54549
-----------------------------------------------------------

Ship it!



3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp
<https://reviews.apache.org/r/25789/#comment94723>

    Very useful comment, thanks Joris!



3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp
<https://reviews.apache.org/r/25789/#comment94722>

    Silly style thing, please move 'stream' to newline.



3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp
<https://reviews.apache.org/r/25789/#comment94720>

    Just a style thing, we tend to declare/define as close to where they're used as possible (i.e., not C style).



3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp
<https://reviews.apache.org/r/25789/#comment94721>

    Silly style thing, but in this case both arguments should be indented the same.


- Benjamin Hindman


On Sept. 25, 2014, 5:10 p.m., Joris Van Remoortere wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25789/
> -----------------------------------------------------------
> 
> (Updated Sept. 25, 2014, 5:10 p.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Add Variadic strings join.
> There is a second version of the variadic join which takes a reference to a stringstream as a parameter. This is handy when strings::join is just a part of a larger string manipulation.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp a1702cd 
>   3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp 51008e5 
> 
> Diff: https://reviews.apache.org/r/25789/diff/
> 
> 
> Testing
> -------
> 
> Ran make check for stout. Added test cases for join as these were missing.
> 
> 
> Thanks,
> 
> Joris Van Remoortere
> 
>


Re: Review Request 25789: Variadic strings join

Posted by Joris Van Remoortere <jo...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25789/
-----------------------------------------------------------

(Updated Sept. 25, 2014, 5:10 p.m.)


Review request for mesos and Benjamin Hindman.


Changes
-------

fix style issues.


Repository: mesos-git


Description
-------

Add Variadic strings join.
There is a second version of the variadic join which takes a reference to a stringstream as a parameter. This is handy when strings::join is just a part of a larger string manipulation.


Diffs (updated)
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp a1702cd 
  3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp 51008e5 

Diff: https://reviews.apache.org/r/25789/diff/


Testing
-------

Ran make check for stout. Added test cases for join as these were missing.


Thanks,

Joris Van Remoortere


Re: Review Request 25789: Variadic strings join

Posted by Joris Van Remoortere <jo...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25789/
-----------------------------------------------------------

(Updated Sept. 23, 2014, 5:30 p.m.)


Review request for mesos and Benjamin Hindman.


Changes
-------

fix style issues.


Repository: mesos-git


Description
-------

Add Variadic strings join.
There is a second version of the variadic join which takes a reference to a stringstream as a parameter. This is handy when strings::join is just a part of a larger string manipulation.


Diffs (updated)
-----

  3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp a1702cd 
  3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp 51008e5 

Diff: https://reviews.apache.org/r/25789/diff/


Testing
-------

Ran make check for stout. Added test cases for join as these were missing.


Thanks,

Joris Van Remoortere


Re: Review Request 25789: Variadic strings join

Posted by Adam B <ad...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25789/#review54238
-----------------------------------------------------------

Ship it!


Looks great! A few minor nits and a request for a comment. I'd be willing to commit this unless @benjaminhindman has any objections.


3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp
<https://reviews.apache.org/r/25789/#comment94247>

    Nit: You only need single-spacing between a namespace opening and the first code inside it.



3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp
<https://reviews.apache.org/r/25789/#comment94248>

    Also don't need double-spacing here (but do below it, I believe)



3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp
<https://reviews.apache.org/r/25789/#comment94249>

    Maybe you could comment why there are two THeads here (for disambiguating from the Iterable version below)? So the next time somebody looks at this they'll know why/how not to change it.



3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp
<https://reviews.apache.org/r/25789/#comment94250>

    s/narly/gnarly/?


- Adam B


On Sept. 22, 2014, 10:30 a.m., Joris Van Remoortere wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25789/
> -----------------------------------------------------------
> 
> (Updated Sept. 22, 2014, 10:30 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Add Variadic strings join.
> There is a second version of the variadic join which takes a reference to a stringstream as a parameter. This is handy when strings::join is just a part of a larger string manipulation.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/strings.hpp a1702cd 
>   3rdparty/libprocess/3rdparty/stout/tests/strings_tests.cpp 51008e5 
> 
> Diff: https://reviews.apache.org/r/25789/diff/
> 
> 
> Testing
> -------
> 
> Ran make check for stout. Added test cases for join as these were missing.
> 
> 
> Thanks,
> 
> Joris Van Remoortere
> 
>