Top "Braces" questions

The symbols "{" and "}", commonly used in programming languages.

What is the meaning of curly braces?

Just starting to figure Python out. I've read this question and its responses: Is it true that I can't use …

python curly-braces parentheses braces
List of all unicode's open/close brackets?

What is a list of every unicode bracket-like characters (including, for example: {}[]()<>)? What is a good way to …

unicode square-bracket braces parentheses curly-brackets
What is the formal difference in Scala between braces and parentheses, and when should they be used?

What is the formal difference between passing arguments to functions in parentheses () and in braces {}? The feeling I got from …

scala syntax parentheses braces
Why is this Java code in curly braces ({}) outside of a method?

I am getting ready for a java certification exam and I have seen code LIKE this in one of the …

java syntax braces
PHP curly braces in array notation

I'd just come across a very weird bit of php code: $oink{'pig'} = 1; var_dump($oink); $oink{'pig'} = '123123'; …

php arrays braces
How can I extract a string between matching braces in Perl?

My input file is as below : HEADER {ABC|*|DEF {GHI 0 1 0} {{Points {}}}} {ABC|*|DEF {GHI 0 2 0} {{Points {}}}} {ABC|*|XYZ:abc:def {GHI 0 22 0} {{…

regex perl parsing matching braces
Highlight BOTH matching braces into Gedit

Any way to highlight both braces on Gedit?, it's annoying when you have several braces joined and is not clear …

gedit braces
Difference between braces {} and brackets () in shell scripting

We use braces {} for variable expression like NAME="test" FILE_NAME=${NAME}file But I don't understand in which scenarios …

shell brackets braces
C++ struct array initialization

This is ok: int vec_1[3] = {1,2,3}; so what's wrong with struct arrays{ int x[3]; int y[3]; int z[3]; }; arrays vec_2; vec_2.…

c++ arrays struct initialization braces
Customizing the formatting output of .sass?

#foo { color:black; } Is there some sort of option to prefix a newline before the trailing } when a .css file …

css formatting sass braces