Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing braces together on new line in arrays and array unions #54

Open
1 task
kdauer opened this issue May 8, 2022 · 0 comments
Open
1 task

Closing braces together on new line in arrays and array unions #54

kdauer opened this issue May 8, 2022 · 0 comments
Labels
story 📚 User stories are short, simple descriptions of a feature.

Comments

@kdauer
Copy link
Contributor

kdauer commented May 8, 2022

Problem to solve

As Squeak Developer, I want C-style braces whenever a block or array is used as receiver so that the closing brace is on a new line.

Further details

In old versions of the C language, argument types needed to be declared on the subsequent line (i.e., just after the header of the function):

/* Original pre-ISO C style without function prototypes */
int main(argc, argv)
    int   argc;
    char  *argv[];
{
    ...
}

So this is the standard we will use
relates to #21
Examples would be:

^ {
    'a' -> 'b'.
    'b' -> 'c'
  }, {
   self urlOfTweak -> 'tweak'
  }
[
  a squared.
  b yourself
] on: Error do: []

as long as it is not configurable this will remain very subjective.

Acceptance Criteria

  • After writing and poppy printing code receiving Blocks (and only receiving Blocks) are formatted in C-Style (see examples)
@kdauer kdauer added the story 📚 User stories are short, simple descriptions of a feature. label May 8, 2022
@kdauer kdauer changed the title intuitive formatting of array unions Closing braces together on new line in arrays and array unions May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
story 📚 User stories are short, simple descriptions of a feature.
Projects
None yet
Development

No branches or pull requests

1 participant