Last active
April 16, 2025 17:10
-
-
Save asahasrabuddhe/15bd5225e4ad5a98034ac4fecd3c7d84 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Problem | Phantom Type Solution | |
---|---|---|
Writing to a read-only file | Only allow `Write(f File[Writable])` | |
Sending unverified request | Only allow `Send(r Request[Validated])` | |
Applying wrong permissions | Distinct phantom markers for each permission | |
Unsafe API transitions | Type-safe state machines (e.g. login flow) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment