This crate, orwith
, is a Rust crate that turns the word "orwith" into a programmatical concept by abstracting the idea of "and/or" and encapsulating it in an Option
-like type.
This crate was created as an example on DEV of how something, in particular, a word, could be represented as a type in a programming language; the word I so happened to choose was "orwith".
"Orwith" is a compound of English "or" and English "with".
The definition can for "orwith" can be found on DeviantArt, in the post “Def: Orwith”.
conjunction. Orwith:
- Expressing that, of two things, one or both are viable alternatives.
Ex.
"I want the green orwith blue rocks."
"Audio orwith video components."
"I can work alone orwith others."
"Do you like your coffee black orwith cream and sugar?"