Conversation
|
In 79318c3 that structure is For 1: In order to query for |
|
Ok, so I found https://www.reddit.com/r/rust/comments/8ls25e/blog_post_typed_key_pattern/ and tried to implement something roughly like it in 5aad6f7. It kind of worked, but storing the types in a map led to conflict: since we no longer have enum-style "reserve max space" semantics (because, at least as far as the compiler's aware at this point, the At that point I was remembering that I implemented this structure in Java, with a lot of We'd have to promote all of the options from enum variants to newtypes, but then SSHConfig could wrap an
Some things we'd be trading away with this approach (at least initially):
All that said, dealing with options as reified top-level types does open up some new possibilities:
cc @dougli1sqrd |
Wherein we attempt to convert a
Vec<SSHOption>into a form that provides a unique answer for any given config parameter. That structure should have three properties:UserSendEnvandIdentityFile