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

FEAT: by operator #5293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

FEAT: by operator #5293

wants to merge 1 commit into from

Conversation

hiiamboris
Copy link
Collaborator

Alias to as-pair, as in 2 by 4, w by h, cols by rows.
It's readable, concise and conveys 2D meaning, and hardly has a better use.
I can compare it to addition: we can use add and sometimes we prefer that, but most of the time stick with just +. Same here. I can find couple of dozens uses of by in Spaces vs only a couple of as-pair.

@greggirwin
Copy link
Contributor

Where is spaces now (I was going to look at by in real use cases)? I still have a ref to the old repo it seems. I thought codeberg, but that one doesn't seem to have been touched in a while.

My gut says by makes sense in dialects, but not so much in general use. One of those cases where the goal of natural language style sounds tempting, but may not be a win overall. And when we implement point, as you note this is for 2D only, it hits a wall. It's a good prompt to think about wording for pair!, which today is described for use as coordinates, but has more dimensional possibilities.

@hiiamboris
Copy link
Collaborator Author

hiiamboris commented Mar 6, 2023

@greggirwin still there but in WIP mode But no search on codeberg, so you might wanna visit github mirror anyway or search locally after pulling.

If this hits a wall with point!, as-pair does that too :)

but has more dimensional possibilities.

Yes, interesting idea.

>> 2 by 4 by 6
== (2, 4, 6)

@greggirwin
Copy link
Contributor

Well, we would call it as-point. :^)

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.

None yet

2 participants