[PATCH] D26332: Add a user-defined literal for StringRef

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 07:17:35 PST 2016


I think chandlerc has been OOO, so let's wait and see what he has to say
On Wed, Nov 9, 2016 at 5:33 AM Malcolm Parsons <malcolm.parsons at gmail.com>
wrote:

> malcolm.parsons added a comment.
>
> The LLVM coding standards don't mention UDL.
>
> The Google C++ Style Guide says
> Pro: User-defined literals are a very concise notation for creating
> objects of user-defined types.
> Con: User-defined literals allow the creation of new syntactic forms that
> are unfamiliar even to experienced C++ programmers.
> Decision: Do not overload operator"", i.e. do not introduce user-defined
> literals
>
> http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/p0403r0.html proposes
> a UDL for std::string_view.
>
> I think the pros outweigh the cons.
>
>
> https://reviews.llvm.org/D26332
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161109/bb78b68e/attachment.html>


More information about the llvm-commits mailing list