Tag Info

New answers tagged

1

"Matching delimiters" refers to the pair, as in "the text between matching delimiters is automatically highlighted." Your sample I am writing an script that needs to be aware of delimiter pairs becomes I am writing a script that needs to be aware of matching delimiters. Also, "the matching delimiter" works when you're talking about one of them ...


3

Wikipedia, here, https://en.wikipedia.org/wiki/Delimiter, says Delimiters can be broken down into: Field and record delimiters; and Bracket delimiters. Bracket delimiters (also block delimiters, region delimiters or balanced delimiters) mark both the start and end of a region of text. I don't know of any formal term used in grammar programs (i.e. ...


1

In some languages, the concatenation operator is just syntactic sugar. For example, in C#: var a = b + c; and: var a = string.Concat(b, c); are compiled to the same Intermediary Language code if b and c are strings: + is here just to make developers' life easier. Syntactic sugar might be nice, but it also means that the company developing the language ...


4

+ is the symbol for addition. Concatenation is not addition. Addition is commutative (a + b == b + a), concatenation isn't ("Hello" + "World" != "World" + "Hello"). Using + for concatenation is just wrong. Other languages use other operators for that reason, e.g. Haskell uses ++, IMP, Perl and PHP use ., Ada and Visual Basic use &, PL/I uses ||, ...



Top 50 recent answers are included