-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed the project from `Trilean` to `Tribool`, out of respect for a preexisting Swift-Trilean project [here](https://github.com/phelgo/Trilean) _(and for the sake of CocoaPods' unique-name requirement)_. His lib seems to be more capable _(implementing Łukasiewicz logic)_, but also adds some cruft that I don't agree with _(global `yes`/`no`/`maybe` constants? `sure()`/`sureNot()`/`unsure()` free functions?)_, implements `Trilean` as a struct rather than an enum, and most importantly, doesn't provide `@objc` compatibility. My original motivation for creating this lib was that I needed vars of `Bool?` type accessible from Objective-C. I couldn't find a way to do that implicitly, but since `Tribool` provides an `func init(_:Bool?)` and `var optionalBoolValue:Bool?`, it's a workable solution. Because of these differences, I'm choosing to stick with my own lib under a rename rather than try to introduce the functionality I need as pull requests on his project. Sometimes simpler is just that much better. * Renamed files & find-and-replaced `Trilean` with `Tribool` everywhere. Affected: ⁃ `Tribool.swift` ⁃ `README.md` _(also, changed preexisting text “AKA TriBool” to “AKA Trilean”)_ ⁃ `Package.swift`, `Tribool.podspec` ⁃ `Tribool.xcodeproj`, and contained files `Tribool_Info.plist`, `project.pbxproj`, `Tribool.xcscheme`, `xcschememanagement.plist` ‣ _Normally, a mass-find-and-replace within xcodeproj files isn't the best idea— it can cause more problems than it solves. However, this project is simple enough that the replace was nice & clean, and I looked over and tested everything post-replace and it all looks good._
- Loading branch information
Showing
9 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Trilean" | ||
name: "Tribool" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Trilean | ||
# Tribool | ||
|
||
Trilean is a Swift micro-library that provides an Obj-C-compatible `Trilean` enum type, for representing 3-value logic states: `.true`, `.false`, and `.indeterminate`. | ||
Tribool is a Swift micro-library that provides an Obj-C-compatible `Tribool` enum type, for representing 3-value logic states: `.true`, `.false`, and `.indeterminate`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters