Skip to content

Conversation

@ikappaki
Copy link
Contributor

Hi,

can you please consider patch to introduce the aslice macro in basilisp.core. It addresses #1248.

Thanks

Copy link
Member

@chrisrink10 chrisrink10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I just have one question.

Comment on lines +1981 to +1984
"Get a portion of the Python list ``array`` using a
Python :external:py:obj:`slice` instance with a single ``stop``
value, or a combination of ``start`` and ``stop`` and optional
``step`` values.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if we should add any documentation about the fact that nil is equivalent to omission in Python for any of these values.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, I've tried to mention nil means omit in the next paragraph, but please be free to suggest a better wording.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you!

Comment on lines +1981 to +1984
"Get a portion of the Python list ``array`` using a
Python :external:py:obj:`slice` instance with a single ``stop``
value, or a combination of ``start`` and ``stop`` and optional
``step`` values.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you!

@chrisrink10 chrisrink10 merged commit 8b6f29b into basilisp-lang:main Apr 24, 2025
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants