Gang Of Coders
Home
About Us
Contact Us
All Syntax Solutions on Gang of Coders
Total of 482 Syntax Solutions
What does "use strict" do in JavaScript, and what is the reasoning behind it?
Javascript
Syntax
Jslint
Use Strict
var functionName = function() {} vs function functionName() {}
Javascript
Function
Syntax
Idioms
What does "static" mean in C?
C
Syntax
Static
What does variable names beginning with _ mean?
C#
asp.net
Syntax
Variables
Naming Conventions
What is the VB.NET select case statement logic with case OR-ing?
vb.net
Syntax
Switch Statement
Ruby templates: How to pass variables into inlined ERB?
Ruby
Templates
Syntax
Erb
Invalid Token when using Octal numbers
Python
Syntax
Python 3.x
Octal
Ruby 1.9 hash with a dash in a key
Ruby
Syntax
Hash
Ruby 1.9
Why is the dereference operator (*) also used to declare a pointer?
C++
Pointers
Syntax
Dereference
Notation
What is the difference between != and =! in Java?
Java
Syntax
Add a property to a JavaScript object using a variable as the name?
Javascript
Jquery
Object
Syntax
Double underscore in PHP
Php
Syntax
Python print statement “Syntax Error: invalid syntax”
Python
Python 3.x
Syntax
Syntax Error
Is there a nice way to make function signatures more informative in Haskell?
Haskell
Syntax
Coding Style
Functional Programming
Is there any reason for using if(1 || !Foo())?
C++
C
If Statement
Syntax
Logical Operators
What do parentheses surrounding an object/function/class declaration mean?
Javascript
Syntax
Go golang, syntax error: unexpected ++, expecting :
Syntax
Go
What is the difference between "keyword" and "reserved word"?
Language Agnostic
Programming Languages
Syntax
Keyword
Reserved Words
In Erlang, when do I use ; or , or .?
Syntax
Erlang
Punctuation
Oracle: '= ANY()' vs. 'IN ()'
Sql
Oracle
Syntax
What is the C# Using block and why should I use it?
C#
.Net
Syntax
Using
Using Statement
In a C function declaration, what does "..." as the last parameter do?
C
Syntax
Function
Parameters
Python dictionary creation syntax
Python
Syntax
Dictionary
Arrow operator (->) usage in C
C
Pointers
Syntax
What's the difference between "2*2" and "2**2" in Python?
Python
Syntax
Interpolate a constant (not variable) into 'heredoc'
Php
Syntax
Constants
Heredoc
How do I syntax check a Bash script without running it?
Linux
Bash
Unix
Syntax
Gnu
What does the <E> syntax mean in Java?
Java
Syntax
How do you create a static class in C++?
C++
Oop
Class
Syntax
Static
Python: One Try Multiple Except
Python
Syntax
Exception Handling
PowerShell string interpolation syntax
Powershell
Syntax
String Interpolation
Why does python use two underscores for certain things?
Python
Syntax
href syntax : is it okay to have space in file name
Html
Syntax
Anchor
Href
How can I do a line break (line continuation) in Python?
Python
Syntax
Line Breaks
Long Lines
How to escape single quotes within single quoted strings
Bash
Syntax
Quoting
What does :: (double colon) stand for?
Function
Haskell
Syntax
Types
Why is declaration of the variable required inside a for-each loop in java
Java
Syntax
Foreach
What is the difference between = and := in Scala?
Scala
Syntax
Colon Equals
Sublime Text 2 - key binding to change syntax
Binding
Syntax
Sublimetext2
Key Bindings
What's the u prefix in a Python string?
Python
Syntax
Can $() always replace backticks for command substitution?
Bash
Syntax
Are square brackets permitted in URLs?
Apache
Http
Url
Syntax
Square Bracket
How to break out of 2 loops without a flag variable in C#?
C#
Syntax
Why should I use a semicolon after every function in javascript?
Javascript
Syntax
Haskell guards on lambda functions?
Haskell
Syntax
Check file uploaded is in csv format
Php
Syntax
File Upload
Content Type
Knockout.js containerless "foreach" not working with <table>
Syntax
knockout.js
What does data ... where mean in Haskell?
Haskell
Syntax
Gadt
Unable to use dot syntax for ruby hash
Ruby
Syntax
Hash
What does the exclamation mark mean in a Haskell declaration?
Haskell
Syntax
Lazy Evaluation
Ruby - test for array
Ruby
Syntax
What do the three arrow (">>>") signs mean?
Python
Syntax
Command Prompt
Code Documentation
What does the ampersand (&) before `self` mean in Rust?
Variables
Syntax
Rust
What does double underscore ( __const) mean in C?
C
Syntax
Double Underscore
Python def function: How do you specify the end of the function?
Python
Syntax
C# using numbers in an enum
C#
Syntax
Enums
Best way to format multiple 'or' conditions in an if statement
Java
Syntax
If Statement
When are parentheses required around a tuple?
Python
Syntax
Tuples
"elseif" syntax in JavaScript
Javascript
If Statement
Syntax
Syntax of for-loop in SQL Server
Sql
Sql Server
Loops
Tsql
Syntax
Printing variables in Python 3.4
Python
Variables
Printing
Syntax
Python [Invalid syntax] with async def
Python
Syntax
Async Await
Discord
discord.py
SQL left join vs multiple tables on FROM line?
Sql
Syntax
Join
Python - is there a "don't care" symbol for tuple assignments?
Python
Syntax
Does Haskell have List Slices (i.e. Python)?
List
Haskell
Syntax
/* (non-javadoc) meaning
Java
Syntax
Comments
Javadoc
function composition with reverse syntax
Haskell
Syntax
Function Composition
What does style.display = '' actually do?
Javascript
Css
Syntax
Java for loop syntax: "for (T obj : objects)"
Java
Syntax
For Loop
Foreach
What does the question mark and the colon (?: ternary operator) mean in objective-c?
Objective C
C
Syntax
Operators
Conditional Operator
Syntax error with std::numeric_limits::max
C++
Visual C++
Syntax
Syntax Error
Numeric Limits
How is "int main(){(([](){})());}" valid C++?
C++
C++11
Lambda
Syntax
Export (default) class in ReactJS
Javascript
Syntax
Reactjs
Ecmascript 6
Putting a simple if-then-else statement on one line
Python
If Statement
Syntax
Ternary Operator
Is there a goto statement in Java?
Java
Syntax
Keyword
Goto
Block Declaration Syntax List
Objective C
Syntax
Objective C-Blocks
Single vs Double quotes (' vs ")
Html
Syntax
How to query nested objects?
Mongodb
Syntax
Nested
Mongodb Query
Bson
What is the result of % in Python?
Python
Python 2.7
Syntax
Operators
Modulo
Question mark and colon in JavaScript
Javascript
Syntax
Operators
Conditional Operator
Can I get "&&" or "-and" to work in PowerShell?
Syntax
Powershell
What does the plus sign do in '+new Date'
Javascript
Syntax
Python: access class property from string
Python
Syntax
Single quotes vs. double quotes in C or C++
C++
C
Syntax
Char
String Literals
ASP.NET "special" tags
asp.net
Syntax
Tags
How do you comment out code in PowerShell?
Powershell
Syntax
Powershell 2.0
Comments
JavaScript error (Uncaught SyntaxError: Unexpected end of input)
Javascript
Jquery
Syntax
Syntax Error
Indentation
Dynamic variable names in Bash
Bash
Variables
Dynamic
Syntax
Shell script "for" loop syntax
Unix
Syntax
Shell
What does this mean in PHP: -> or =>
Php
Syntax
What do you call the -> operator in Ruby?
Ruby
Syntax
What is the benefit of using $() instead of backticks in shell scripts?
Bash
Syntax
Sh
Backticks
Java method with return type compiles without return statement
Java
Syntax
While Loop
Compilation
Return
Test for non-zero length string in Bash: [ -n "$var" ] or [ "$var" ]
Bash
Shell
If Statement
Syntax
Scripting
Correct way to populate an Array with a Range in Ruby
Ruby
Syntax
What does a tilde do when it precedes an expression?
Javascript
Syntax
Bit Manipulation
C# - Keyword usage virtual+override vs. new
C#
Syntax
Overriding
Method Hiding
Member Hiding
What does '<?=' mean in PHP?
Php
Syntax
Python integer incrementing with ++
Python
Syntax
Increment
javascript function leading bang ! syntax
Javascript
Syntax
C# binary literals
C#
Syntax
Binary
Effects of the extern keyword on C functions
C
Syntax
Standards
Are multi-line strings allowed in JSON?
Json
String
Syntax
Multiline
What is the difference between single-quoted and double-quoted strings in PHP?
Php
String
Syntax
Extracting specific columns in numpy array
Python
Syntax
Numpy
What is the use of the square brackets [] in sql statements?
Sql Server
Syntax
What is the meaning of three dots (...) in PHP?
Php
Syntax
Operators
How to concatenate string variables in Bash
Bash
Shell
Syntax
Concat
String Concatenation
Null check in an enhanced for loop
Java
Syntax
Loops
For Loop
What do the plus and minus signs mean in Objective-C next to a method?
Objective C
Syntax
Method Declaration
Are "elseif" and "else if" completely synonymous?
Php
Syntax
Conditional Statements
In PHP, why does </script> not show a parse error?
Php
Syntax
Parse Error
Putting an if-elif-else statement on one line?
Python
If Statement
Syntax
When do we need curly braces around shell variables?
Bash
Shell
Syntax
Curly Braces
Why does calling a function in the Node.js REPL with )( work?
Javascript
node.js
Syntax
How do I abort the execution of a Python script?
Python
Syntax
Scripting
Exit
How do I pass multiple parameters in Objective-C?
Objective C
Syntax
Parameters
Methods
What is `1..__truediv__` ? Does Python have a .. ("dot dot") notation syntax?
Python
Python 3.x
Syntax
Operators
Python 2.x
Using multiple arguments for string formatting in Python (e.g., '%s ... %s')
Python
String
Syntax
how to reference a YAML "setting" from elsewhere in the same YAML file?
Syntax
Yaml
Template Engine
Transclusion
What do >> and << mean in Python?
Python
Syntax
Operator Keyword
Commenting in a Bash script inside a multiline command
Bash
Syntax
Comments
All possible array initialization syntaxes
C#
Arrays
Syntax
Array Initialization
Are double square brackets [[ ]] preferable over single square brackets [ ] in Bash?
Bash
If Statement
Syntax
What does the "at" (@) symbol do in Python?
Python
Syntax
Python Decorators
What does @@variable mean in Ruby?
Ruby
Syntax
Instance Variables
Class Variables
What is the Java ?: operator called and what does it do?
Java
Syntax
Ternary Operator
Conditional Operator
LaTeX package for syntax highlighting of code in various languages
Syntax
Package
Latex
Highlight
What is the difference between ${var}, "$var", and "${var}" in the Bash shell?
Bash
Shell
Variables
Syntax
What does the tilde before a function name mean in C#?
C#
Syntax
Tilde
Get Insert Statement for existing row in MySQL
Mysql
Syntax
Method Syntax in Objective-C
Objective C
Syntax
Methods
Is there a foreach in MATLAB? If so, how does it behave if the underlying data changes?
Matlab
Syntax
Ruby send vs __send__
Ruby
Syntax
What does %>% function mean in R?
R
Syntax
Dplyr
Magrittr
R Faq
What is the difference between . (dot) and $ (dollar sign)?
Haskell
Syntax
Function Composition
Difference between single and double quotes in Bash
Bash
Shell
Syntax
Quotes
Isn't a semicolon (';') needed after a function declaration in C++?
C++
Function
Syntax
Declaration
Const before or const after?
C++
C
Syntax
Constants
PHP Difference between array() and []
Php
Arrays
Syntax
Square Bracket
Bash/sh - difference between && and ;
Bash
Shell
Syntax
Multiplatform
What is the difference between syntax and semantics in programming languages?
Syntax
Programming Languages
Semantics
How to use ? : if statements with Razor and inline code blocks
asp.net
asp.net Mvc
asp.net Mvc-3
Syntax
Razor
Why was the statement (j++); forbidden?
C#
Syntax
Expression
Language Design
Parentheses
How can I concatenate regex literals in JavaScript?
Javascript
Regex
Syntax
Best way to split string into lines
C#
String
Syntax
Multiline
How do you pass a function as a parameter in C?
C
Function
Pointers
Syntax
Parameters
How to use double or single brackets, parentheses, curly braces
Bash
Syntax
What does Class<?> mean in Java?
Java
Syntax
What is the purpose of the '@' symbol in CSS?
Css
Syntax
Symbols
Difference between if () { } and if () : endif;
Php
Syntax
What does the leading semicolon in JavaScript libraries do?
Javascript
Syntax
Are (non-void) self-closing tags valid in HTML5?
Html
Syntax
W3c Validation
In Stroustrup's example, what does the colon mean in "return 1 : 2"?
C++
Syntax
Allowed characters in Linux environment variable names
Linux
Syntax
Environment Variables
Why are trailing commas allowed in a list?
Python
List
Syntax
Comma
Trailing
What does the star and doublestar operator mean in a function call?
Python
Syntax
Parameter Passing
Iterable Unpacking
Argument Unpacking
What does preceding a string literal with "r" mean?
Python
String
Syntax
Literals
Rawstring
How does an underscore in front of a variable in a cocoa objective-c class work?
Objective C
Cocoa Touch
Cocoa
Variables
Syntax
How does this JavaScript/jQuery syntax work: (function( window, undefined ) { })(window)?
Javascript
Jquery
Syntax
Why does (1 in [1,0] == True) evaluate to False?
Python
Syntax
Operator Precedence
Is "long long" = "long long int" = "long int long" = "int long long"?
C++
Syntax
Declaration
Long Integer
What does the "@" symbol mean in reference to lists in Haskell?
Haskell
Syntax
How to convert Set to Array?
Javascript
Arrays
Collections
Syntax
Ecmascript Harmony
In c# what does 'where T : class' mean?
C#
Syntax
LINQ, Where() vs FindAll()
C#
Linq
Syntax
String formatting named parameters?
Python
String
Syntax
Swift make method parameter mutable?
Swift
Syntax
Immutability
Mutability
Why do results vary based on curly brace placement?
Javascript
Syntax
What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
Python
Syntax
Parameter Passing
Variadic Functions
Argument Unpacking
Get the first element of each tuple in a list in Python
Python
Python 2.7
Syntax
Need a simple explanation of the inject method
Ruby
Syntax
C#: Abstract classes need to implement interfaces?
C#
Syntax
Interface
Abstract Class
Kotlin secondary constructor
Syntax
Constructor
Kotlin
Default value of function parameter
C++
Syntax
Optional Parameters
Command not found error in Bash variable assignment
Bash
Shell
Syntax
Sh
Variable Assignment
What is the syntax rule for having trailing commas in tuple definitions?
Python
Syntax
Tuples
What does 'wb' mean in this code, using Python?
Python
File
Syntax
What does the "Just" syntax mean in Haskell?
Haskell
Syntax
What's the difference between parenthesis $() and curly bracket ${} syntax in Makefile?
Variables
Syntax
Makefile
How to break a long line of code in Golang?
Go
Syntax
What does a tilde in angle brackets mean when creating a Java generic class?
Java
Generics
Intellij Idea
Syntax
Tilde
How to break out of a loop from inside a switch?
C++
Loops
Syntax
Switch Statement
Break
Cross-reference (named anchor) in markdown
Html
Syntax
Markdown
Anchor
What does the "@" symbol do in PowerShell?
Syntax
Powershell
How to change Hash values?
Ruby
Syntax
Hash
How can I throw an exception in C?
C
Exception
Syntax
Ruby's ||= (or equals) in JavaScript?
Javascript
Ruby
Syntax
Kotlin asterisk operator before variable name or Spread Operator in Kotlin
Syntax
Kotlin
Using map() on an iterator
Javascript
Dictionary
Syntax
Ecmascript 6
Iterator
Automatic counter in Ruby for each?
Ruby
Syntax
Java switch statement multiple cases
Java
Syntax
Switch Statement
Ternary operator (?:) in Bash
Bash
Syntax
Conditional Operator
"int main (vooid)"? How does that work?
C
Syntax
Main
Is there any difference between the `:key => "value"` and `key: "value"` hash notations?
Ruby
Syntax
Hash
Ruby 1.9
Hashrocket
Python-equivalent of short-form "if" in C++
C++
Python
Syntax
Bash syntax error: unexpected end of file
Bash
Syntax
Difference between '..' (double-dot) and '...' (triple-dot) in range generation?
Ruby
Syntax
Range
Why do assignment statements return a value?
C#
Syntax
Is it possible to insert multiple rows at a time in an SQLite database?
Sql
Sqlite
Syntax
Java Lombok: Omitting one field in @AllArgsConstructor?
Java
Syntax
Constructor
Field
Lombok
Can you add new statements to Python's syntax?
Python
Syntax
Language Specifications
What do constructor type arguments mean when placed *before* the type?
Java
Generics
Syntax
Constructor
Generic Type-Argument
#import using angle brackets < > and quote marks " "
Objective C
Syntax
Import
Packages
Is there a difference between x++ and ++x in java?
Java
Syntax
Operators
Increment
Is there a performance gain in using single quotes vs double quotes in ruby?
Ruby
Performance
Syntax
What does a b prefix before a python string mean?
Python
Syntax
Python 3.x
Byte
Advanced JavaScript: Why is this function wrapped in parentheses?
Javascript
Function
Syntax
Parentheses
Iife
YAML: Do I need quotes for strings in YAML?
Syntax
Yaml
Quotes
What does the tilde (~) mean in my composer.json file?
Symfony
Syntax
Composer Php
What does "%" (percent) do in PowerShell?
Powershell
Syntax
Concatenate two string literals
C++
String
Syntax
Operators
Concatenation
Is it possible to make anonymous inner classes in Java static?
Java
Syntax
Inner Classes
What's the difference between comma separated joins and join on syntax in MySQL?
Mysql
Sql
Join
Syntax
Why does the delete[] syntax exist in C++?
C++
Memory Management
Syntax
Language Lawyer
Standards
Weird "[]" after Java method signature
Java
Arrays
Syntax
Why are C# 3.0 object initializer constructor parentheses optional?
C#
Syntax
Types
Language Design
Initializer
Which is more preferable to use: lambda functions or nested functions ('def')?
Python
Syntax
Function
Lambda
Any idea why I need to cast an integer literal to (int) here?
Java
Syntax
Casting
Nested JSON objects - do I have to use arrays for everything?
Javascript
Jquery
Json
Syntax
Parsing
Semicolons superfluous at the end of a line in shell scripts?
Bash
Shell
Syntax
Is there a difference between single and double quotes in Java?
Java
Syntax
Is there a better way to express nested namespaces in C++ within the header
C++
Syntax
Namespaces
Using unset vs. setting a variable to empty
Bash
Variables
Syntax
Is it OK to use == on enums in Java?
Java
Syntax
Enums
What does "while True" mean in Python?
Python
Syntax
Conditional operator in Python?
Python
Syntax
Why is whitespace sometimes needed around metacharacters?
Bash
Shell
Syntax
Syntax Error
What is the difference between '/' and '//' when used for division?
Python
Math
Syntax
Operators
Floor Division
Why is list initialization (using curly braces) better than the alternatives?
C++
C++11
Syntax
Initialization
List Initialization
Immediate function invocation syntax
Javascript
Syntax
Jslint
Iife
What are the precise rules for when you can omit parenthesis, dots, braces, = (functions), etc.?
Syntax
Scala
Why are functions and methods in PHP case-insensitive?
Php
Syntax
Case Insensitive
What does [:] mean?
Python
Arrays
Syntax
Slice
text highlight in markdown
Syntax
Markdown
What does map(&:name) mean in Ruby?
Ruby
Syntax
Operators
Parameter Passing
How to avoid the spell check on string in Pycharm
Python
Syntax
Pycharm
Why isn't assigning to an empty list (e.g. [] = "") an error?
Python
Syntax
Variable Assignment
Getting a default value on index out of range in Python
Python
List
Syntax
Default Value
Location of parenthesis for auto-executing anonymous JavaScript functions?
Javascript
Syntax
Anonymous Function
Iife
Syntax highlighting code with Javascript
Javascript
Html
Syntax
Syntax Highlighting
How do I select an element in jQuery by using a variable for the ID?
Jquery
Syntax
Select
What does param: _* mean in Scala?
Scala
Syntax
Scala Collections
Associativity of "in" in Python?
Python
Syntax
How to escape % in String.Format?
Java
Android
String
Syntax
What's the difference between placing "mut" before a variable name and after the ":"?
Variables
Syntax
Reference
Rust
Mutable
Use-case of `oneway void` in Objective-C?
Objective C
Syntax
Keyword
Use Case
Does assignment with a comma work?
Javascript
Syntax
What's the false operator in C# good for?
C#
.Net
Syntax
"var" or no "var" in JavaScript's "for-in" loop?
Javascript
Syntax
For in-Loop
"x not in y" or "not x in y"
Python
Syntax
Operators
How to concatenate strings in twig
Syntax
Twig
String Concatenation
Templating
How do I pass multiple parameters into a function in PowerShell?
Powershell
Syntax
Parameter Passing
What is the purpose of "!" and "?" at the end of method names?
Ruby
Methods
Syntax
Predicate
Syntactic Sugar
What's the difference between <?> and <? extends Object> in Java Generics?
Java
Syntax
Generics
How to normalize a 2-dimensional numpy array in python less verbose?
Python
Arrays
Syntax
Numpy
Normalization
Object initialization syntax
Syntax
F#
Object Initializers
Is Hash Rocket deprecated?
Ruby
Syntax
Hash
Ruby 1.9
Hashrocket
Why are hexadecimal numbers prefixed with 0x?
C
Syntax
Hex
What is the equivalent of "!=" in Excel VBA?
Excel
Vba
Function
Syntax
Inequality
Why do people use __ (double underscore) so much in C++
C++
Syntax
Java "?" Operator for checking null - What is it? (Not Ternary!)
Java
Syntax
Null
How to include a quote in a raw Python string
Python
Syntax
How do I break a string in YAML over multiple lines?
String
Syntax
Yaml
Newline
How do I iterate over a range of numbers defined by variables in Bash?
Bash
Shell
For Loop
Syntax
What's the meaning of "=>" (an arrow formed from equals & greater than) in JavaScript?
Javascript
Syntax
Ecmascript 6
Arrow Functions
Declaring functions in JavaScript
Javascript
Syntax
Function
What does an underscore and interface name after keyword var mean?
Syntax
Interface
Go
Underscores
Is "else if" a single keyword?
C++
Syntax
Language Lawyer
C# Syntax - Split String into Array by Comma, Convert To Generic List, and Reverse Order
C#
Generics
Syntax
Ilist
Best way to "negate" an instanceof
Java
Syntax
How do I modify a MySQL column to allow NULL?
Mysql
Syntax
Alter
What is the meaning of prepended double colon "::"?
C++
Syntax
Namespaces
Scope Resolution
Global Namespace
Why does C not allow concatenating strings when using the conditional operator?
C
String
Syntax
Concatenation
Conditional Operator
Is there an "opposite" to the null coalescing operator? (…in any language?)
C#
Programming Languages
Syntax
Operators
Null Coalescing-Operator
Difference between LIKE and ~ in Postgres
Sql
Regex
Postgresql
Syntax
What does "-ne" mean in bash?
Bash
Shell
Syntax
Why is NULL undeclared?
C++
Syntax
Nodes
How can I split a shell command over multiple lines when using an IF statement?
Syntax
Sh
What is Ruby's double-colon `::`?
Ruby
Syntax
Operators
What does the '=>' syntax in C# mean?
C#
Syntax
Dot Operator in Haskell: need more explanation
Haskell
Syntax
Function Composition
What are some example use cases for symbol literals in Scala?
Syntax
Scala
JavaScript property access: dot notation vs. brackets?
Javascript
Syntax
Object Literal
Is there a difference between "!=" and "is not" in C#?
C#
If Statement
Syntax
Syntax highlighting in vim for python
Python
Vim
Syntax
Vi
Vim Syntax-Highlighting
Usage of :- (colon dash) in bash
Bash
Syntax
Is localStorage.getItem('item') better than localStorage.item or localStorage['item']?
Javascript
Syntax
Local Storage
Using the && operator in an if statement
Bash
If Statement
Syntax
Operators
Assignment operator in Go language
Syntax
Go
What's the difference between 'int?' and 'int' in C#?
C#
Syntax
Types
Nullable
Reversing a list using slice notation
Python
List
Syntax
Slice
What does :: do in PostgreSQL?
Postgresql
Syntax
Types
Casting
Typecast Operator
What does : mean?
C++
Syntax
F# explicit match vs function syntax
Syntax
F#
What is the r#""# operator in Rust?
String
Rust
Syntax
String Literals
Syntax for a for loop in ruby
Ruby
Syntax
Shorthand for arrays: is there a literal syntax like {} or []?
Php
Arrays
Syntax
Code block in numbered list (Wiki syntax)
Syntax
Wiki
Mediawiki
How do I select an element that has a certain class?
Html
Css
Syntax
Css Selectors
C++ array initialization
C++
Syntax
Is there a difference between return myVar vs. return (myVar)?
C#
Syntax
Does Razor syntax provide a compelling advantage in UI markup?
asp.net Mvc
Syntax
Markup
Razor
asp.net Mvc-3
Why the strange indentation on switch statements?
Java
C
Syntax
How to do block comments in Gherkin?
Syntax
Cucumber
Comments
Specflow
Gherkin
Why don't associated types for protocols use generic type syntax in Swift?
Oop
Generics
Swift
Syntax
Check if returned value is not null and if so assign it, in one line, with one method call
Java
Syntax
Null
Variable Assignment
Method Call
What do the different brackets in Ruby mean?
Ruby
Syntax
Comments in Markdown
Syntax
Comments
Markdown
Why does ++[[]][+[]]+[+[]] return the string "10"?
Javascript
Syntax
Can you use a trailing comma in a JSON object?
Json
Syntax
Delimiter
In Java, can I define an integer constant in binary format?
Java
Syntax
Binary
C function syntax, parameter types declared after parameter list
C
Syntax
Function
why put $ with $self and $body? And is self the same as $self
Jquery
Syntax
Difference between jQuery.extend and jQuery.fn.extend?
Jquery
Syntax
Plugins
Extend
str.format() raises KeyError
Python
Syntax
String Formatting
Delimiter
Missing Data
syntax error: unexpected token <
Javascript
Jquery
Ajax
Syntax
Token
What does "dyn" mean in a type?
Syntax
Rust
Haskell "do nothing" IO, or if without else
Haskell
Syntax
Io
Why does C# allow {} code blocks without a preceding statement?
C#
Syntax
Language Design
What is a regular language?
Syntax
Programming Languages
Bnf
Regular Language
Formal Languages
Why can't constructors be final, static, or abstract?
Java
Syntax
Constructor
Objective-C: @class Directive before @interface?
Objective C
Syntax
Getting "command not found" error while comparing two strings in Bash
String
Bash
If Statement
Syntax
Compare
Difference between >>> and >>
Java
Syntax
Operators
What is the purpose of "&&" in a shell command?
Bash
Shell
Command Line
Syntax
Is C++ context-free or context-sensitive?
C++
Syntax
Grammar
Context Free-Grammar
Context Sensitive-Grammar
JQuery .hasClass for multiple values in an if statement
Javascript
Jquery
Syntax
Logic
$(document).on('click', '#id', function() {}) vs $('#id').on('click', function(){})
Jquery
Syntax
What are the Java semantics of an escaped number in a character literal, e.g. '\15' ?
Java
Syntax
Character
Literals
Octal
Splitting C++ Strings Onto Multiple Lines (Code Syntax, Not Parsing)
C++
String
Syntax
Coding Style
Readability
No Multiline Lambda in Python: Why not?
Python
Syntax
Lambda
How do you format an unsigned long long int using printf?
C
Syntax
Printf
Format Specifiers
Long Long
"Unknown escape sequence" error in Go
Regex
Syntax
Go
What do curly braces in Java mean by themselves?
Java
Syntax
Scope
Curly Braces
Java: What does ~ mean
Java
Syntax
Operators
Special Characters
Meaning of *& and **& in C++
C++
Pointers
Syntax
Reference
Symbols
What is the proper way to test a Bash function's return value?
Bash
Function
Syntax
Why does Java not allow foreach on iterators (only on iterables)?
Java
Syntax
Iterator
Language Design
Iterable
Generator as function argument
Python
Python 3.x
Syntax
Python 2.x
Generator Expression
What's the difference between eq, eql, equal and equalp, in Common Lisp?
Syntax
Common Lisp
Equality
PHP syntax question: What does the question mark and colon mean?
Php
Syntax
Ternary Operator
Is it possible to assign the same value to multiple keys in a dict object at once?
Python
Syntax
Dictionary
What are Automatic Properties in C# and what is their purpose?
C#
.Net
Syntax
Properties
Automatic Properties
What is the use of <<<EOD in PHP?
Php
Syntax
Writing try catch finally in shell
Shell
Syntax
Try Catch
Finally
What is the meaning of "dot parenthesis" syntax?
Go
Syntax
Type Assertion
Language Concepts
ES6+ javascript module export options
Javascript
Syntax
Module
Export
Ecmascript 6
Why does the statement "2i;" NOT cause a compiler error?
C
Syntax
Parenthesis surrounding return values in C
C
Syntax
Coding Style
PHP curly brace syntax for member variable
Php
Syntax
Variables
Curly Braces
Dot notation vs. message notation for declared properties
Objective C
Syntax
Coding Style
Javascript: Get deep value from object by passing path to it as string
Javascript
Syntax
Path
What is the underscore actually doing in this Java code?
Java
Syntax
How can I fix MySQL error #1064?
Mysql
Parsing
Syntax
Syntax Error
Mysql Error-1064
I do not understand why this compiles
C++
Syntax
Declaration
Most Vexing-Parse
Can you use semicolons in Ruby?
Ruby
Syntax
What's this C++ syntax that puts a brace-surrounded block where an expression is expected?
C++
Syntax
Language Extension
Gcc Extensions
Gcc Statement-Expression
Why does this call the default constructor?
C++
Syntax
Most Vexing-Parse
Ruby: Creating a hash key and value from a variable in Ruby
Ruby
Hash
Syntax
How do I perform a GROUP BY on an aliased column in SQL Server?
Sql
Sql Server
Tsql
Syntax
How to make "if not true condition"?
Bash
If Statement
Syntax
Boolean Expression
c++ array assignment of multiple values
C++
Arrays
Programming Languages
Syntax
Convert Map<String,Object> to Map<String,String>
Java
Syntax
Map
Type Conversion
Are semantics and syntax the same?
Syntax
Terminology
Semantics
What is the purpose of the colon before a block in Python?
Python
Syntax
What is the correct syntax of ng-include?
Javascript
Html
Angularjs
Syntax
Include
Is there a standardized method to swap two variables in Python?
Python
Syntax
Swap
Conventions
What does "DateTime?" mean in C#?
C#
.Net
Datetime
Syntax
Nullable
Insert into ... values ( SELECT ... FROM ... )
Sql
Database
Syntax
Database Agnostic
Ansi Sql-92
What is this weird colon-member (" : ") syntax in the constructor?
C++
Syntax
Constructor
C++ Faq
Ctor Initializer
What's the syntax to import a class in a default package in Java?
Java
Syntax
Import
Why should there be spaces around '[' and ']' in Bash?
Bash
If Statement
Syntax
Explain the encapsulated anonymous function syntax
Javascript
Syntax
Anonymous Function
How to use a dot "." to access members of dictionary?
Python
Dictionary
Syntax
Nested
Is it correct to use single quotes for HTML attributes?
Html
Syntax
Coding Style
Apostrophe
What are those pipe symbols for in Ruby?
Ruby
Syntax
Using an Alias in SQL Calculations
Mysql
Sql
Database
Syntax
What is C# 'internal' in VB.net?
C#
vb.net
Syntax
Keyword
-bash: syntax error near unexpected token `newline'
Bash
Syntax
Newline
Token
What is double exclamation mark in C#?
C#
Function
Syntax
Method Signature
C# 11.0
In JavaScript is != same as !==
Javascript
Syntax
Why is a trailing comma a SyntaxError in an argument list that uses *args syntax?
Python
Syntax
Python Internals
What does the -> <- operator do?
Java
Syntax
Lambda
Obfuscation
Java 8
How can you write multiple statements in elisp 'if' statement?
Syntax
Elisp
List of Scala's "magic" functions
Syntax
Scala
What does '&' do in a C++ declaration?
C++
Syntax
Operators
How do you express binary literals in Python?
Python
Syntax
Binary
Integer
Literals
What characters are permitted for Haskell operators?
Haskell
Syntax
Operators
What do square brackets around an expression mean, e.g. `var x = a + [b]`?
Javascript
Arrays
Syntax
Why avoid increment ("++") and decrement ("--") operators in JavaScript?
Javascript
Syntax
Jslint
Postfix Operator
Prefix Operator
Testing for nil in Objective-C -- if(x != nil) vs if(x)
Objective C
Syntax
Split requirements files in pip
Python
Syntax
Installation
Pip
Package Management
Strange array return type
Java
Arrays
Syntax
Declaration
Accessing dict keys like an attribute?
Python
Dictionary
Syntax
Attributes
What is the 'open' keyword in Swift?
Swift
Swift3
Syntax
Declaration
Modifier
Python, what does an underscore before parenthesis do
Python
Syntax
Purpose of Scala's Symbol?
Scala
Syntax
Language Design
Symbols
Literals
How does a for loop work, specifically for(;;)?
Java
Loops
Syntax
For Loop
Iteration
Why does 10..toString() work, but 10.toString() does not?
Javascript
Syntax
How do I get a decimal value when using the division operator in Python?
Python
Python 2.7
Math
Syntax
Operators
How does "object.new" work? (Does Java have a .new operator?)
Java
Syntax
Inner Classes
Mid-line comment in Python?
Python
Syntax
Comments
Else clause on Python while statement
Python
Syntax
While Loop
If Statement
Groovy method with optional parameters
Groovy
Syntax
Optional Parameters
How to add or increment a dictionary entry?
Python
Syntax
Can typescript export a function?
Javascript
Typescript
Syntax
Typescript Module-Resolution
How do you comment out in Liquid?
Syntax
Liquid
Comments
How to import a .hs file in Haskell
Haskell
Syntax
Module
What is the formal difference in Scala between braces and parentheses, and when should they be used?
Scala
Syntax
Parentheses
Braces
What is :: (double colon) in Python when subscripting sequences?
Python
Syntax
Slice
Is it bad practice to comment out single lines of CSS with //?
Css
Syntax
Comments
Returning function pointer type
C
Syntax
Types
Function Pointers
What does the colon dash ":-" mean in bash
Bash
Shell
Syntax
Semantics
When do Ruby instance variables get set?
Ruby
Syntax
Instance Variables
What is the meaning of the ${0##...} syntax with variable, braces and hash character in bash?
Bash
Variables
Syntax
Curly Braces
Case statement with multiple values in each 'when' block
Ruby on-Rails
Ruby
Syntax
Switch Statement
What does the `forall` keyword in Haskell/GHC do?
Haskell
Syntax
Types
Ghc
Forall
How do I remove javascript validation from my eclipse project?
Javascript
Jquery
Eclipse
Validation
Syntax
What is /dev/null 2>&1?
Shell
Syntax
Posix
Io Redirection
When are argument labels required in Swift?
Swift
Syntax
Why do some people prefer "T const&" over "const T&"?
C++
Syntax
Pointers
Reference
Types
Why is Main method private?
C#
.Net
Syntax
Methods
For loop in Objective-C
Objective C
Syntax
In Ruby, how do I skip a loop in a .each loop, similar to 'continue'
Ruby
Loops
Syntax
Iteration
int a[] = {1,2,}; Why is a trailing comma in an initializer-list allowed?
C++
Syntax
Grammar
Language Lawyer
How to suppress "{variable} is better written in dot notation."
Javascript
Syntax
Properties
Jshint
What does this line mean in Java: boolean retry = id == 1;
Java
Syntax
Why is __FILE__ uppercase and __dir__ lowercase?
Ruby
Syntax
Language Implementation
What does `<>` mean in Python?
Python
Syntax
Operators
Python 2.x
Are semicolons optional in Rust?
Syntax
Rust
What does C++ syntax “A::B:A {};” mean
C++
Struct
Syntax
Scope Resolution
Method chaining with function arguments
Javascript
Syntax
Coffeescript
When should I use a semicolon after curly braces?
Javascript
Syntax
What is the difference between Pattern Matching and Guards?
Haskell
Syntax
Guard
`from ... import` vs `import .`
Python
Import
Syntax
Module
Python Import
Is there a difference between `continue` and `pass` in a for loop in python?
Python
Syntax
Continue
Which is the right one, nil or NULL, to mark "no Objective-C block"?
Objective C
Syntax
Objective C-Blocks
When is the "typename" keyword necessary?
C++
Templates
Syntax
Typename
Syntax: "Exit Sub" or "Return" in VB.NET subroutines
vb.net
Syntax
Return
Subroutine
What's the "|" for in a Haskell class definition?
Haskell
Syntax
Typeclass
How do you say not equal to in Ruby?
Ruby
Syntax
Equals
What does __all__ mean in Python?
Python
Syntax
Namespaces
How do I convert a float number to a whole number in JavaScript?
Javascript
Syntax
Update Query with INNER JOIN between tables in 2 different databases on 1 server
Sql Server
Database
Syntax
Inner Join
Javascript logical "!==" operator?
Javascript
Syntax
Logical Operators
Meaning of ~. (tilde dot) argument?
R
Syntax
Use of commas versus semicolons?
Javascript
Syntax
What is the difference between curly brace and square bracket in Python?
Python
Syntax
Curly Braces
Square Bracket
Why is "extends T" allowed but not "implements T"?
Java
Generics
Syntax
Haskell (:) and (++) differences
List
Haskell
Syntax
Aren't Boolean variables always false by default?
C++
Syntax
Modifier Keyword order in Java
Java
Syntax
Coding Style
Access Modifiers
What does $ mean/do in Haskell?
Haskell
Syntax
Operators
Dollar Sign
Understanding the simplest LLVM IR
Syntax
Llvm
Templates escaping in Kotlin multiline strings
String
Kotlin
Syntax
Understanding implicit in Scala
Scala
Syntax
Playframework
Keyword
What does the SQL # symbol mean and how is it used?
Sql Server
Syntax
Symbols
Can you use static constants inside classes in PHP?
Php
Class
Variables
Syntax
Constants
How does a 'const struct' differ from a 'struct'?
C
Syntax
Purpose of a ".f" appended to a number?
C++
Syntax
Casting
What is the difference between semicolons in JavaScript and in Python?
Javascript
Python
Syntax
Leaving out the last semicolon of a CSS block
Jquery
Css
Syntax
How can I write two separate blockquotes in sequence using markdown?
Syntax
Markdown
Quote
Difference between period and comma when concatenating with echo versus return?
Php
Syntax
Compare
Concatenation
Python "raise from" usage
Python
Python 3.x
Syntax
Exception Handling
How to swap text based on patterns at once with sed?
Replace
Syntax
Sed
What's the syntax for declaring an array of function pointers without using a separate typedef?
C++
Arrays
Syntax
Function Pointers
Typedef
How do I access an element of a control template from within code-behind
Wpf
Syntax
User Controls
Code Behind
PostgreSQL syntax check without running the query
Sql
Parsing
Postgresql
Syntax
Cvs
Dash double semicolon (;;) syntax
Syntax
Sh
Dash Shell
What is the full "for" loop syntax in C?
C
Syntax
For Loop
What does `**` mean in the expression `dict(d1, **d2)`?
Python
Syntax
Dictionary
Operators
Set Operations
New/strange Java "try()" syntax?
Java
Syntax
Try Catch
What does it mean to pass `_` (i.e., underscore) as the sole parameter to a Dart language function?
Syntax
Dart
Can I use ES6's arrow function syntax with generators? (arrow notation)
Javascript
Ecmascript 6
Syntax
Generator
Arrow Functions
Haskell record syntax
Layout
Haskell
Syntax
Syntactic Sugar
What does the @ prefix do on string literals in C#
C#
.Net
String
Syntax
Literals
What is the meaning of a question mark in bash variable parameter expansion as in ${var?}?
Bash
Variables
Syntax
Best syntax for a = (x == null) ? null : x.func()
C#
Syntax
What does a semicolon do?
Python
Function
If Statement
Syntax
Break
What does to_proc method mean?
Ruby
Syntax
Block
Symbols
Proc