Scala - Prefix Unary Operators
问题 I've recently given Scala a second chance, and started with the project I always implement (in functional or pseudo-functional languages): an automated reasoner for propositional logic (and later predicate logic). Now, I've tried to get the notation of propositional logic in the language itself as pretty as possible, and I've gotten this far - with an implicit conversion (String -> Atom): ("A" and "B") implies "C" The functions "and" and "implies" (and "or" and "equivalent") are simple