Skip to content

Instantly share code, notes, and snippets.

@CodeSandwich
Last active May 12, 2019 09:05
Show Gist options
  • Save CodeSandwich/33798f137a2dd233172091d51cf3b92f to your computer and use it in GitHub Desktop.
Save CodeSandwich/33798f137a2dd233172091d51cf3b92f to your computer and use it in GitHub Desktop.
  • mock lifetimes mess, implicit casting everywhere
  • Fn is somewhat limited, no unsafes
  • Common fn for all fn arg counts - fn {} to fn casting is only implicit or fully explicit with all arg types - ergonomics killer, also it breaks if fn is not explicitly requested (but trait is or something). Can't impl anything for fn{}
  • Blanket impls - impl MockUnsafe for Mock conflicts with any impl Mock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment