4 releases

0.1.3 Apr 9, 2023
0.1.2 Apr 7, 2023
0.1.1 Mar 15, 2023
0.1.0 Mar 14, 2023

#590 in Programming languages

37 downloads per month

MIT license

5KB
61 lines

Orwith

What is this 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.

Why was this 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".

What does "orwith" mean?

"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:

  1. 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?"

No runtime deps