Log in Sign up
2 Matching Annotations
  1. Sep 2022
  2. github.com github.com
    Check begin-end blocks in Layout/EndAlignment by fphilipe · Pull Request #7337 · rubocop/rubocop
    1
    1. TylerRick 26 Sep 2022
      in Public
      I said I wanted begin..end to follow the same indentation principles as if..end because they are semantically related (both are expressions), and I stand by that opinion.
      programming: expressions Ruby similarity similarities/commonalities
    Visit annotations in context

    Tags

    • programming: expressions
    • Ruby
    • similarity
    • similarities/commonalities

    Annotators

    • TylerRick

    URL

    github.com/rubocop/rubocop/pull/7337
  3. github.com github.com
    Treat begin-end like do-end in Layout/BlockAlignment by fphilipe · Pull Request #7286 · rubocop/rubocop
    1
    1. TylerRick 26 Sep 2022
      in Public
      really begin/end is just a way to pass several expressions where you normally need to pass only one. In this way I think it's much closer to something like conditionals (e.g. if, than to do).
      I agree Ruby programming: block (of code: {}, begin/end) programming: expressions
    Visit annotations in context

    Tags

    • programming: expressions
    • Ruby
    • I agree
    • programming: block (of code: {}, begin/end)

    Annotators

    • TylerRick

    URL

    github.com/rubocop/rubocop/pull/7286
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy