-
Notifications
You must be signed in to change notification settings - Fork 17
Separator: =
vs. :
#8
Comments
|
@bterlson @littledan @hashseed @patch Thoughts? |
I'd say it's arbitrary. Any separator would do. |
I still prefer : slightly as I like to think about it like creating an options bag, but my only strong preference is to not do both. |
I prefer |
Time for a twitter poll! :-P |
https://twitter.com/bterlson/status/764184006095048704
|
This seems possibly confusing as @bmeck points out. let foo;
`${foo=1}`; // foo = 1
/\p{foo=1}/; // syntax error? |
Not really sure why that’s confusing… one is a string template and the other is a regexp literal. Syntax is entirely different… |
It's possibly confusing because in order to understand what foo=1 is doing you have to understand that the syntax is entirely different despite looking identical (and even the surrounding syntax is similar what with the curlies and all). |
In theory I like I performed an extremely unscientific survey of my locally checked-out git projects (which of course includes my own code):
Also the regex docs for Java and ICU only include |
Seems like most people feel that way. @patch makes a very good point in favor of
I’m slightly leaning towards sticking to @bterlson What do you think? |
I find @patch's arguments the most persuasive so far and am convinced that regexp experts will generally prefer I cannot argue strongly in favor of |
At TC39, we decided to reverse the judgement here and go with |
I feel like we didn't represent the FAQ entry contents well... do you @littledan? If not maybe we can do a quick re-check? |
A quick re-check sounds good! If the decision made in this issue is reversed, I’d love to hear the rationale for it. |
OK, I'll see if we have time to discuss this at this TC39 meeting later. The rationale was that |
Cc @allenwb who made the point for |
Perl does both:
We only want to support one, but which one? The current proposal uses
=
, but why not:
?The text was updated successfully, but these errors were encountered: