-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Introduce apply
as alternative to :=
#230
base: master
Are you sure you want to change the base?
Conversation
TBH I've thought about this before. It would be a major syntactic change, but the change would only by skin-deep. I'm curious what other people think about it? This is definitely a preference thing, and I'd be happy to go along with whatever the overall consensus is. @lolgab perhaps you could flesh out the PR description a bit: explain why you're doing this, what the pros and cons are, provide a few more examples, etc.. Then I'll see if I can get folks to look at this PR to see what they think in aggregate? |
My two cents: In Laminar we use In Laminar docs there's a short section that recommends that people use Personally I vastly prefer typing shift+9 to space-shift-colon-equals-space, and I like the resulting clean look too. |
Oh, one other aspect of using I'm not saying which side of this aspect is the winner, I'm not sure myself, just something I've noticed in a similar context of Laminar's |
Seems nice but please do not deprecate the |
Please don't deprecate The |
Laminar introduced the convention (I'm not sure if this was already available before somewhere else) to replace the
attribute := value
syntax withattribute(value)
.I find this syntax much easier to use, and it would be nice if Scalatags supported it.