Programming Languages - Built-in
Bash
$#- Denotes the number of arguments you have passed to the shell script from the command line.$@- All arguments, as separate words.$*- All arguments, as one word.$$- ID of the current process.$?- Exit status of the last command.$0,$1,..$9,${10},${11}…${N}- These are positional parameters. After “9″ you must use the${k}syntax.
Node / JavaScript
Global Objects
process: the global object in Node, similar towindowin browser.process.env: environment variables defined and exported in~/.bash_profileor~/.bashrcprocess.argv: Stores commandline arguments.process.exit(): Exit program.
window: the global object in the browser.
Get num of CPUs:
var numCPUs = require('os').cpus().length;
Python
>>> import keyword
>>> keyword.kwlist
['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
>>> len(keyword.kwlist)
33
async and await were added in 3.7
Rust
https://doc.rust-lang.org/reference/keywords.html
Kotlin
kotlin keyword/operator: https://kotlinlang.org/docs/keyword-reference.html#operators-and-special-symbols
Recommended ReadingSponsored
Concepts
Overview
Which Programming Languages To Learn
Compile Time and Runtime
Standard Libraries
Build Tools
Memory Management
Zero Cost Abstractions
Design Patterns
Constructors
Compatibility
Closures
Functional Programming
Generics
String Interning
Coding Conventions
Main
Ranges
Lambda
Random
IO
Operators
Built-in
Constants
Functions
Generics
Print
Pointers
Annotations
Quotes
Destructuring
Generators
Imports
Iterators
Testing
Visibility
Assignment Semantics
Slices
SSA
Versus
Concurrency
Control Flow
Data Structures
