gracinet added a comment.

  @yuja you're right!  My first attempt was tainted with assigning to a `Vec`, 
whereas upon type inference with the actual return type `PyResult<Vec>`, the 
compiler does the right thing so that was the escape plan for early returns in 
closures :-) amazing.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5439

To: gracinet, #hg-reviewers, kevincox
Cc: yuja, durin42, kevincox, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to