wlamartin
Joined 10 years ago
Karma
84
Submissions
61
Member since
Aug 29
Joined 10 years ago
What am I missing?
I do believe there's more that the MCP Server could be offering to protect users, but that seems like a separate point.
1: https://github.blog/2024-05-02-introducing-artifact-attestat...
While we haven't yet been able to prioritise using this package, our discussions with them were great and I think that in typical Charm fashion, they've created something really awesome here. In particular, we mentioned to them our desire to have accessibility as a first class experience and I think they really took that on board.
Jury is still out but it's been an interesting experiment.
I guess this wasn't entirely without sense but sort of seemed to be missing the point.
interface Repository<T> {
FetchAll() T[]
Fetch(id) T
Persist(T) id
}
Why would the SQL statements be reflected in the behaviour that the interface is providing?
In your second example, as a retrofit, I find myself asking "when does MapErr stop consuming the input list?", "which error gets returned if multiple errors could be returned?", "is it a errors.Joim situation", "if there are multiple errors how do I map them to the failed elements in parsed", "if I did want each parse to have either success or fail (think Result type) how would I represent this generically in a language that favours multiple return types"
There's a lot going on with that example that a for loop makes explicit and flexible for other choices.