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

Formatting in loop macro with conditional #130

Open
mark-gerarts opened this issue Jan 1, 2023 · 0 comments
Open

Formatting in loop macro with conditional #130

mark-gerarts opened this issue Jan 1, 2023 · 0 comments

Comments

@mark-gerarts
Copy link

When writing a loop, the formatting for conditionals looks like this (silly example):

(loop for i from 1 to 10
        when (oddp i)
      collect it)

(loop for i from 1 to 10
        if (oddp i)
      collect i into odds
        else
      collect i into evens
      finally (return (list odds evens)))

While instead I would expect it to be as follows:

(loop for i from 1 to 10
      when (oddp i)
        collect it)

(loop for i from 1 to 10
      if (oddp i)
        collect i into odds
      else
        collect i into evens
      finally (return (list odds evens)))

As an aside, sorry for creating yet another issue. I merely want to document the problems I encounter with no expectation for you to fix it 🙂

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