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

Some code still uses old formatting #14

Open
Mercerenies opened this issue Nov 14, 2017 · 2 comments
Open

Some code still uses old formatting #14

Mercerenies opened this issue Nov 14, 2017 · 2 comments

Comments

@Mercerenies
Copy link
Owner

Awhile ago, the convention in Latitude was to indent things differently than it is now. This led to some strange-looking constructs such as

foo := Object clone tap { something.
                          somethingElse. }.
while { foo. }
  do { someWork. }.

Code of this form in the standard library should be changed to follow the new convention.

foo := Object clone tap {
  something.
  somethingElse.
}.
while { foo. } do {
  someWork.
}.
Mercerenies added a commit that referenced this issue Jan 10, 2018
Mercerenies added a commit that referenced this issue Jan 10, 2018
Mercerenies added a commit that referenced this issue Jan 10, 2018
@Mercerenies Mercerenies changed the title Some code still uses strange indentation Some code still uses old formatting Jan 11, 2018
@Mercerenies
Copy link
Owner Author

There are some other conventions that need to be rectified now too. For instance, excessive use of : for argument lists should be curtailed in favor of () shorter argument lists, and excessively parenthesized operator expressions should have parentheses removed since #19 has been added.

Change

a := (b) + (foo: c, d)

to

a := b + foo (c, d)

@Mercerenies
Copy link
Owner Author

Similarly, the new if-statement syntax for Boolean logic

Instead of

if ((a) or (b)) then { ... } else { ... }

favor

if (a) or (b) then { ... } else { ... }

Mercerenies added a commit that referenced this issue Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant