News for hackers. Stuff that matters.
Re:Announcing Rust 1.19 by joshmarlow on Thursday July 20, 2017 @02:23PM (#14815053)
If you're using the loop macro, you can do it from Common Lisp (see [0]).

  (block outer
    (loop for i from 0 return 100) ; 100 returned from LOOP
    (print "This will print")
    200) ==> 200

  (block outer
    (loop for i from 0 do (return-from outer 100)) ; 100 returned from BLOCK
    (print "This won't print")
    200) ==> 100
[0] - http://www.gigamonkeys.com/book/loop-for-black-belts.html

EDIT: I always do formatting wrong on here.

Re:Announcing Rust 1.19 by lispm on Thursday July 20, 2017 @03:56PM (#14815747)
One can also break out of the LOOP and return the so far accumulated value:

  CL-USER> (loop for i from 1 below 10
                 sum i
                 when (= i 6)
                   do (loop-finish))
  21
Re:Announcing Rust 1.19 by pdw on Thursday July 20, 2017 @03:42PM (#14815643)
Not just with LOOP, RETURN works with every standard iteration construct.