Top "Keyword" questions

Keywords are special words used as identifiers by a language.

Normal arguments vs. keyword arguments

How are "keyword arguments" different from regular arguments? Can't all arguments be passed as name=value instead of using positional …

python arguments keyword optional-parameters named-parameters
Equivalent of "continue" in Ruby

In C and many other languages, there is a continue keyword that, when used inside of a loop, jumps to …

ruby keyword continue
Passing a dictionary to a function as keyword parameters

I'd like to call a function in python using a dictionary. Here is some code: d = dict(param='test') def …

python function dictionary parameters keyword
What is the native keyword in Java for?

While playing this puzzle (It's a Java keyword trivia game), I came across the native keyword. What is the native …

java java-native-interface native keyword
Alternative to a goto statement in Java

What is an alternative function for the goto keyword in Java? Since Java does not have a goto.

java keyword goto
Does the 'mutable' keyword have any purpose other than allowing the variable to be modified by a const function?

A while ago I came across some code that marked a member variable of a class with the mutable keyword. …

c++ keyword mutable
Difference of keywords 'typename' and 'class' in templates?

For templates I have seen both declarations: template < typename T > template < class T > What's the difference? …

c++ templates keyword
Python: SyntaxError: keyword can't be an expression

In a Python script I call a function from rpy2, but I get this error: #using an R module res = …

python syntax syntax-error keyword
What does PHP keyword 'var' do?

This is probably a very trivial question, but I haven't been able to find the answer neither through web search …

php keyword
When should I use the new keyword in C++?

I've been using C++ for a short while, and I've been wondering about the new keyword. Simply, should I be …

c++ pointers reference new-operator keyword