0

In software development there are code loop constructions, which you can BREAK.

foreach(i in integers)
  ...
  break

If I break the cycle, it becomes broken or breaked?

Which sentence is correct in this context: loop is broken or loop is breaked? It is important to distinguish between broken as incorrect one and broken as interrupted.

10
  • 4
    Just anecdotal evidence, but in decades of programming C-like languages, I've never used or seen "breaked".
    – user888379
    Commented Feb 6, 2018 at 14:42
  • 4
    I wouldn't say you have broken the loop, but that you have broken out of the loop. This disambiguates it from the other sense of broken.
    – JonLarby
    Commented Feb 6, 2018 at 15:03
  • 3
    We’d normally use exited or terminated, rather than a past tense of break.
    – Lawrence
    Commented Feb 6, 2018 at 15:03
  • 2
    Program execution tend to be described dynamically. A 'break' statement is a command with results. The past participle that usually attends the 'break' statement is 'interrupted': "The for loop was interrupted by the break statement". 'Broken' is a static thing. "The for loop is broken because of the syntax error"
    – Mitch
    Commented Feb 6, 2018 at 15:03
  • 1
    I'm voting to close this question as off-topic because it belongs on a programming site, as the question is specific to that domain. in that rather isolated domain, otherwise irregular words such as 'breaked' might prove acceptable. Commented Feb 6, 2018 at 17:00

2 Answers 2

0

The best way to describe a computer program depends on the level you want to speak at, e.g.

  • The result is found.
  • The iteration terminates.
  • The loop is exited.
  • The interpreter executes the break statement.
  • The processor branches, and so on.

The problem with words like break is that they aren’t strongly associated with any particular level, and they have larger meanings, e.g. a broken loop can be one that does not implement the programmer’s original intention. However, the designer of a programming language naturally wants to use words that have meaning to humans, and sometimes this can be misleading. When, for example, was the last time you saw a print statement causing something to appear on a physical printer?

2
  • Yeah, I think it is better to correct wording and make the loop "cancelled" or "interrrupted"
    – TOP KEK
    Commented Feb 7, 2018 at 12:48
  • In choosing words to describe a computer program, it’s worth remembering that all automated processes can be modeled as finite state machines. Sometimes, you want to talk about the state transition in terms of structures. At other times, you want to talk about how the program moves through a sequence of states. IMHO, terms like loop pose a challenge, since it’s a structural term (a noun) that can also be used as a verb to describe an action, i.e. looping. So when you use it, you can slip from one mode of description to another, and therefore find the next word hard to think of.
    – user205876
    Commented Feb 7, 2018 at 16:41
0

Break is an irregular verb, so we have break - broke (past) - broken (past participle)

P.S. I've never heard or seen "breaked" ). But you can try to use this word as a joke ("savvy" - Jack Sparrow)

1
  • 2
    But does this answer for the context of the OP?
    – Mitch
    Commented Feb 6, 2018 at 14:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .