crate
?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.
crate
created?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" and is a synonym for "and/or".
A more proper definition of the word can be found on DeviantArt, in the post “Def: Orwith”.
conjunction. Orwith: 1.) Being accompanied with, or outright replaced by, something (specified in the context); and/or. 2.) Indicating that both options are possibilities; "or with".
Ex.
"I want the green orwith blue rocks."
"Audio orwith video components."
"I can work alone orwith others."