optional
adj. · n.-
1 not compulsory (adj.) B1 Intermediatedescribes something you can choose to do or not do.
denoting something that is left to choice rather than being required or mandatory.
ExampleThe school trip is optional, so you don't have to go if you are busy.
ExampleWhile the core modules are mandatory for graduation, the advanced seminar remains optional for those seeking additional credits.
UsageUsually placed before the noun it modifies.
-
2 an elective item (n.) B2 Upper Intermediatesomething that is not required, like an extra subject at school.
an item, such as a course of study or a vehicle feature, that is not compulsory.
ExampleLeather seats are one of the many expensive optionals available for this car.
ExampleThe curriculum includes three core sciences and a wide variety of optionals ranging from art history to computer science.
UsageOften used in the plural when referring to car features or school subjects.
- requirement
- must have
Show 1 more senseShow fewer
-
3 programming variable (n.) C1 Advanced Technical Computinga type of data in computer code that might or might not have a value.
a container or wrapper type that may or may not contain a meaningful value, used to handle null cases safely.
ExampleThe function returns an optional because the user might not have an email address.
ExampleBy using an Optional instead of a null pointer, the developer explicitly signals that the return value might be empty, reducing runtime errors.
UsageOften capitalized when referring to the specific class or type in languages like Swift or Java.
Teacher's tipThis is a highly specific technical term; outside of software engineering, 'optional' is almost exclusively an adjective.
- nullable
- maybe type
From option + -al.
- Nounoption
- Adjectiveoptional