Top "Literals" questions

a notation for representing fixed values in source code

Is the u8 string literal necessary in C++11

From Wikipedia: For the purpose of enhancing support for Unicode in C++ compilers, the definition of the type char has …

c++ utf-8 c++11 literals string-literals
Java equivalent of C#'s verbatim strings with @

Quick question. Is there an equivalent of @ as applied to strings in Java: For example I can do @"c:\afolder\…

c# java string literals
What does LL mean?

Is LL defined anywhere in the standard (hard term to come by)? ideone accepts the code int main() { std::cout &…

c++ literals suffix
How to break a big lua string into small ones

I have a big string (a base64 encoded image) and it is 1050 characters long. How can I append a big …

string lua multiline literals
Objective C literals for NSSet and NSOrderedSet?

What, if any, NSSet and NSOrderedSet operations can one perform with the new Objective-C collection literals? For NSArray, NSDictionary, and …

literals nsset nsorderedset
Type '[String, AnyObject?]' does not conform to protocol AnyObject?: why?

I'm trying to understand why I have a compilation error: Type '[String, AnyObject?]' does not conform to protocol …

dictionary swift compiler-errors nsdictionary literals
Why is this string key in a hash converted to a symbol?

Using Ruby 2.3: In example 1, the string key "a" is automatically converted to a symbol, whereas with example 2, it stays a …

ruby string hash symbols literals
C++ vector literals, or something like them

I'm writing some code against a C++ API that takes vectors of vectors of vectors, and it's getting tedious to …

c++ vector literals
What is the >>>= operator in C?

Given by a colleague as a puzzle, I cannot figure out how this C program actually compiles and runs. What …

c obfuscation literals bit-shift digraphs
Use XML Literals in C#?

Is it possible to add literal XML data within a C# code file? I'm currently using a multiline string literal …

c# xml literals