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

[RFC] make :.foo mean :foo(.foo), as in :foo($_.foo) #1462

Closed
zoffixznet opened this issue Feb 1, 2018 · 2 comments
Closed

[RFC] make :.foo mean :foo(.foo), as in :foo($_.foo) #1462

zoffixznet opened this issue Feb 1, 2018 · 2 comments
Labels

Comments

@zoffixznet
Copy link
Contributor

@zoffixznet zoffixznet commented Feb 1, 2018

Finding myself often writing something like

    Some::Other.new: :foo(.foo) :bar(.bar) :ber(.ber) with $obj

Would be neat to have it as

    Some::Other.new: :.foo :.bar :.ber with $obj

(tho not yet unsure how well these would play with stuff like GLOBAL::.keys that use the same symbols)

Anyone else frequents these constructs? Perhaps, there's a trick I'm overlooking?

@zoffixznet zoffixznet added the RFC label Feb 1, 2018
@AlexDaniel
Copy link
Contributor

@AlexDaniel AlexDaniel commented Feb 17, 2018

Anyone else frequents these constructs?

12 lines, 4 modules: https://gist.github.com/3db74087abeec7db9cded3f9bb48bacc

@zoffixznet
Copy link
Contributor Author

@zoffixznet zoffixznet commented Feb 17, 2018

In light of #1532 the colonpairs are an even larger beast than I thought when I opened this ticket.

Don't want to make it larger by my hand, so I'm gonna self-reject this. Will see if anyone else stumbles upon this idea in the future.

@zoffixznet zoffixznet closed this Feb 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants