The "Missing:"s below indicate that an entry is incomplete.
- either the entry exist in the language, and please tell.
- either the entry doesn't exist in the language, and please tell so.
The entry will be marked as such and won't appear as missing anymore.
See the various entries for SML
- Category: Functional, Statically typed
- Various
Missing:
documentation comment
information about the current line and file
tokens (case-sensitivity (keywords, variable identifiers...))
tokens (if case sensitive, what is the standard way for scrunching together multiple words)
comparison (returns 3 values (i.e. inferior, equal or superior))
comparison (min / max (binary or more))
force garbage collection
- Functions
Missing:
partial application (in the examples below, a normal call is "f(a,b)") (give the first argument to operator ">")
partial application (in the examples below, a normal call is "f(a,b)") (give the second argument to operator ">")
function definition
identity function
- Control Flow
callcc | call-with-current-continuation |
Missing:
loop (for each value in a numeric range, 1 increment (see also the entries about ranges))
loop (for each value in a numeric range, 1 decrement)
loop (for each value in a numeric range, free increment)
- Package, Module
Missing:
declare
import
- Strings
Missing:
type name
character type name
character "z"
strings (with interpolation)
strings (end-of-line (without writing the real CR or LF character))
multi-line
serialize (marshaling)
unserialize (un-marshaling)
upper / lower case character
uppercase / lowercase / capitalized string
locate a substring
locate a substring (starting at the end)
- Booleans
Missing:
type name
- Bags and Lists
Missing:
type name
list/array indexing
adding an element at index
first element
all but the first element
last element
get the first element and remove it
get the last element and remove it
is an element in the list
smallest / biggest element
join a list of strings in a string using a glue string
iterate with index
remove duplicates
sort
lookup an element in a association list
- Various Data Types
Missing:
tuple type
optional value (null value)
optional value (value)
optional value (type name)
dictionary (type name)
dictionary (constructor)
dictionary (access)
dictionary (has the key ?)
dictionary (remove by key)
dictionary (list of keys)
dictionary (list of values)
range
- Mathematics
Missing:
type name
numbers syntax (integers)
numbers syntax (integers in base 2, octal and hexadecimal)
numbers syntax (integer thousand-seperator)
numbers syntax (decimals)
addition / subtraction / multiplication / division
negation
random (random number)
random (seed the pseudo random generator)
operator priorities and associativities
trigonometry (inverse)
bitwise operators
Remarks
- (1) for C, it is not a standard convention, but it is the more widespread
- (2) any string literal would work
- (3) see also =head1, =head2, =over, etc
- (4) need "file: %script-header.r" in file header
- (5) displayed <- with a special character
- (6) variable on the right
- (7) the variable behaves like a pointer
- (8) cf horizontal layout
- (9) introduce scope
- (10) ascii representation, original uses a special charset
- (11) <> and # are synonyms
- (12) === and !== differ from == and != when the objects' type differ
- (13) for objects
- (14) normal / structural / unification / arithmetic
- (15) deep comparison
- (16) in List::Util
- (17) Univ operator
- (18) procedure call
- (19) the function is "f: g:"
- (20) special sugar for only one parameter
- (21) there really is a parameter which is the empty tuple
- (22) f is a block
- (23) when callee has special "&" prototype
- (24) this is a block, not precisely a function, but it's alike
- (25) also works for procedures: proc {$ A B} ... end
- (26) x, y, z are the parameters
- (27) method is optional
- (28) in Lua, "return xxx" can only appear before a block end
- (29) only in inline('...')
- (30) "return" is used when there is no value to return
- (31) only for anonymous function
- (32) the result goes to "e"
- (33) "break"s are mandatory, even for "default"!
- (34) Perl >= 5.8.0
- (35) cond
- (36) see also catch/throw
- (37) often provided in the abbreviated form call/cc
- (38) expression "e" is cast to the type of "v"
- (39) quite bad: only the reference is non-mutable whereas the object is still mutable
- (40) eventual send
- (41) properties are something alike attributes, but really are methods
- (42) one level depth
- (43) general deep copy function
- (44) object cloning is the default, uses the copy constructor in C++
- (45) assignment attempt
- (46) does not work on builtin types
- (47) see also callable(obj.meth) for unbound methods
- (48) usually called self
- (49) ":" is for external symbols only, recommended
- (50) directory name is package name
- (51) if names are exported using @EXPORT
- (52) if names are not exported or are exported using @EXPORT_OK
- (53) deprecated in ANSI Common Lisp, but used in ASDF
- (54) using a correspondance from the package name to the file name
- (55) when using format
- (56) but not using the C-like %-syntax
- (57) adding an end-of-line
- (58) adding an end-of-line unless already newline-terminated
- (59) faster than isEqual
- (60) Lua 5.0
- (61) is range-checked whereas a[i] is not
- (62) ESI dialect
- (63) beware of 0.0 which is true in Pike!
- (64) &, and synonyms
- (65) simple functions, not operators
- (66) flattened
- (67) restricted to initialisation of a local variable in C and C++
- (68) a b c must be constants
- (69) beware, if you give only one integer argument, it is the size!
- (70) for write access: a i o put
- (71) for write access: a :at i :put o
- (72) list comprehension
- (73) not in standard
- (74) in place
- (75) not standard, but nearly standard
- (76) the result is not guaranteed to be the same as the order in the input
- (77) Borland Pascal extension
- (78) prefix
- (79) postfix
- (80) infix
- (81) only for "access" types
- (82) attribute selector
- (83) returns an iterator
- (84) integers are decimals
- (85) with mathematical priorities
- (86) APL uses a real multiplication sign for multiplication from a special character set
- (87) for each various types
- (88) Ruby >= 1.7
- (89) log x 10
- (90) see also bit-and / bit-or / bit-xor
- (91) see also bit-not
- (92) "stop" is now deprecated
Pixel
This document is licensed under GFDL (GNU Free Documentation License).
$Id: syntax-across-languages.html.pl 327 2006-09-25 15:47:54Z pixel $