initializer
- noun
- /ɪˈnɪʧəˌlaɪzər/
- Specialized
- In programming, an initializer sets the starting value of a variable when it is declared.
Examples
-
Java semantics suffers from the distinction between expressions and statements; see the crazy way to only run the initializer of a final variable within a try.
Blog text (30) -
And of course, again, this initializer throws, so we need to try it.
-
A call for a new Parliament session automatically requires a Throne Speech initializer.
Blog text (31) -
So I've got right up here an initializer init for MIT person takes in a family name and a first name.
-
When creating an object in code, the initializer assigns default properties to that object.
-
You must define an initializer to ensure that your variables have a value at the start.
Synonyms
A person who starts a plan or action
A special function in a computer program that makes and sets up a new object
Surface Forms
Morphology
initializer = initialize (transparent) = initial + ize + er
The word is transparently built from the verb 'initialize' plus the agentive suffix '-er', meaning a thing or person that initializes something.
Etymology
Initializer comes from the root init-, which means 'beginning' and appears in words like initial and initiate. An initializer gives the first values or sets the 'starting' state, so its name tells you it works at the very start of a program or process.