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

Comments

Projects
None yet
2 participants
@zoffixznet
Copy link
Contributor

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

This comment has been minimized.

Copy link
Member

AlexDaniel commented Feb 17, 2018

Anyone else frequents these constructs?

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

@zoffixznet

This comment has been minimized.

Copy link
Contributor

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