-
Notifications
You must be signed in to change notification settings - Fork 2
Influences
Benjamin Kowarsch edited this page Aug 10, 2020
·
4 revisions
Several concepts and facilities were adopted from or influenced by other languages:
- strict name equivalence
- the distinction of alias types and derived types
- the general idea of allowing digit separators in number literals
- number literals
-
CONST
parameters - the
++
and--
notation, but only in statements - the general idea of records with an indeterminate array field, but type safe
- single line comments using prefix
!
- the general idea of a stigmatising naming convention for unsafe facilities
- the
CAST
function - pragma delimiters
<*
and*>
- extensible record types
- support for reference counted types
- functions
PRED
andSUCC
- the general idea of built-in
READ
andWRITE
syntax - the concept of storing the length/value-count of a string/array within the string/array itself
- the general idea of array slicing
- array indexing relative to last index
Some adopted features are common in many other languages and are not easily traceable to their origin
- zero-based array indexing
- structured value constructors
- for-each loop instead of for-to-by loop
Copyright © 2015-2018 Modula-2 Software Foundation