Something that is bothering me is why the term 'literal' is used to refer to instances of classes like NSString
and NSArray
. I had only seen the term used in reference to NSString
and being naive I thought it had something to do with it 'literally' being a string, that is between quotation markers. Sorry if that sounds pathetic, but that was how I had been thinking about it.
Then today I learned that certain instances of NSArray
can also be referred to as literal instances, i.e. an instance of the class created using a 'literal syntax'.