-
Notifications
You must be signed in to change notification settings - Fork 17
[Q] String#{trimStart, trimEnd}
and String#{trimLeft, trimRigth}
equality
#4
Comments
That's a good question. The options are either:
I think that the easiest as well as the one that ends up with the preferred names is the first option - where they are different functions but both call the same internal abstract operation. |
The first way the easiest, but currently in the spec if functions do the same - it's the same functions. Simple example - |
That's a good point. Based on that pattern, it'd be one of the second two - probably the third option for easier legacy compat. |
Agree. |
FWIW, If we seek spec consistency with that precedent, the option "=== w/ names trimStart/trimEnd" should be picked. Also, I don’t think there is much compat issue around the name of these functions, since functions in IE11 have no name. Anyway, personally I don’t care, as long as the "official" function ( |
The current spec makes |
I think we can close this for now. If this for some reason is causing concern at the meeting we can reopen the issue. |
Is it the same functions? If the same - which names they should have?
The text was updated successfully, but these errors were encountered: