3
lorentz
3d

What are the opinions on Rust's labelled blocks and break 'label control flow primitive?

Comments
  • 2
    No language is complete without goto: instructions.
  • 1
    In fact if you use anything but goto: instructions for your control flow, you're a noob. Kids these days are all about with their ifs and then and while. Not in my computer
  • 1
    tco monkey-patching
  • 0
    @kobenz but they can only go forward though
  • 0
    @antigermanist but they're unconditional and acyclic though
  • 0
    The only attribute they share with goto is that they can break through other control flow structures, but they share that with early return and throw as well. I'd say that a function-local throw-catch that aligns to Rust's type system is the closest comparison.
  • 0
    I mean, is there something to dislike about them?
  • 3
    That language is literally the opposite of C huh. It's the Emacs under the languages. I'm sure you can order a pizza soon by just writing proper syntax.
  • 1
    @retoor you should look at Diesel ORM
  • 0
    it "statically" at compile time checks the correctness of the SQL queries via "EXPLAIN" on an actual dev DB so you can use db-specific SQL features and still get type checking.
  • 0
    @lorentz aaah yes, forgot one:
    coroutine monkey-patching
Add Comment