-
Notifications
You must be signed in to change notification settings - Fork 0
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
object definition syntax change #106
Comments
shame on me, just realized i should have done this as comment on #78 |
No that is not about this. I should have put a description. We need to have the regex of a valid "identifier".
This is invalid. Either you wanna reset the properties (note the plural) of an object (named foo) So your third point is moot. |
third point resulted from an issue veo pointed out in irc, which was the primary reason for this proposal |
And I am telling you, he was wrong. This is invalid. Concerning your proposal, here's why we can't have it:
The problem with that new syntax is that we would only be able to use it in the root scope (since the root has no siblings). That would complicate things without much to gain (compared to the current solution). |
if #107 gets resolved so |
I have no idea what @Mouvedia is talking about: As he is sort of pointing out, `=`` is used as a siblings combinator, which I like quite a lot, it would need to be substituted with another char. On the other hand, there is also the & notation.
How would those be handled? |
@veosotano I know it's off topic but do you agree that it shouldn't be allowed to assign an object and declare its name at the same time? e.g. Either you are using an object already declared before and hence it has a name or you just use the object directly ( IMHO the only logical usage for So back to your proposal, I vote -1 for now. |
now we use
i propose we switch to
My arguments are:
PHP
($foo = ...
),Javascript
(var foo = function(){}
pretty similar neh?), etc= @
vs current@[::alpha::]+ =
background[2]
stuff), soprop[foo] : @type bar {};
cant happen (saves us a console warning + priority decision)Contra:
The text was updated successfully, but these errors were encountered: