annotate LICENSE @ 74:c7c596e6388f

Make conversations type-safe (last big reorg) (REAL) (NOT CLICKBAIT) In previous versions of Conversation, you could send messages and then return messages of the wrong type or in the wrong order or whatever. The receiver would then have to make sure that there were the right number of messages and that each message was the right type. That's annoying. This change makes the `Message` enum a two-way channel, where the asker puts their question into it, and then the answerer (the conversation) puts the answer in and returns control to the asker. The asker then only has to pull the Answer of the type they wanted out of the message.
author Paul Fisher <paul@pfish.zone>
date Fri, 06 Jun 2025 22:21:17 -0400
parents ce47901aab7a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
1 The MIT License (MIT)
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
2
45
ce47901aab7a Rename to “nonstick”, move to root, update docs and license.
Paul Fisher <paul@pfish.zone>
parents: 0
diff changeset
3 Copyright © 2015 TOZNY, 2015–2022 pam-rs contributors, 2025 Paul Fisher
0
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
4
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
5 Permission is hereby granted, free of charge, to any person obtaining a copy
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
6 of this software and associated documentation files (the "Software"), to deal
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
7 in the Software without restriction, including without limitation the rights
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
9 copies of the Software, and to permit persons to whom the Software is
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
10 furnished to do so, subject to the following conditions:
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
11
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
12 The above copyright notice and this permission notice shall be included in all
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
13 copies or substantial portions of the Software.
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
14
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
21 SOFTWARE.
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
22