Re: Native Assertions

2019-01-27 Thread Sebastian Zartner
console.assert is standardized by the WHATWG at https://console.spec.whatwg.org/#assert. Sebastian On Mon, 14 Jan 2019 at 12:39, Michael Haufe wrote: > console.assert is not standardized at this point, nor is it part of the > language. Additionally, the semantics are inappropriate for the

Re: Removal of language features

2017-07-25 Thread Sebastian Zartner
On 24 July 2017 at 10:47, Naveen Chawla wrote: > If reducing the available feature set would increase performance then a > declaration to the browser to ignore deprecated features should be enough to > get this optimization, but only for this reason. > > But do we even

Re: Proposal: Expose offsets for capturing groups in regular expression matches

2017-03-30 Thread Sebastian Zartner
e repository in GitHub at https://github.com/tc39/ > proposal-regexp-named-groups/issues . I'd be happy to have your input. > This proposal's implementation is in progress in V8. > > Dan > > On Mar 30, 2017 10:29 AM, "Sebastian Zartner" <sebastianzart...@gmail.com>

Re: Proposal: Expose offsets for capturing groups in regular expression matches

2017-03-30 Thread Sebastian Zartner
ed group, I thought a simpler approach would easier get traction. Also, this approach is conformant to how other languages like ColdFusion solve this. Having said that, I am happy to discuss different approaches to this. Sebastian > On Mon, Oct 31, 2016 at 9:53 AM, Sebastian Zartner < &g

Proposal: Expose offsets for capturing groups in regular expression matches

2016-10-31 Thread Sebastian Zartner
Hello together, for advanced processing of capturing groups in regular expression, I'd like to propose to expose their offsets within the results of executing an expression on a string. The complete proposal can be found at

Re: Could we add the missing Regexp features from perl?

2016-06-17 Thread Sebastian Zartner
There are already a few regexp features in the pipeline, see https://github.com/goyakin/es-regexp (listed in the Stage 0 proposals at https://github.com/tc39/proposals/blob/master/stage-0-proposals.md). The list of proposed features is not complete yet[1], though they already cover some main

Re: Look-behind proposal in trouble

2015-10-05 Thread Sebastian Zartner
Hi together, Brian, where can people get the information about the reasons of such decisions (besides asking) and more generally about the processes behind the ES development? I was following Nozomu's proposal[1] closely, though to me it looked like the progress on this just died out.

Re: Re: Additional Math functions

2015-10-02 Thread Sebastian Zartner
While Math.sum() and Math.mean() currently don't exist, they can easily be polyfilled: See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce#Sum_all_the_values_of_an_array for summarizing the values of an array and the following code for building the

Re: for statement with index and value

2015-07-15 Thread Sebastian Zartner
That only works if all values are distinct. The following will result in the wrong index for the last item: let values = [a, b, a]; for (let value of values) { let index = values.indexOf(value); } Also that construct is not very performant. Sebastian On 15 July 2015 at 03:02, Rick Waldron

Re: Look-behind proposal

2015-06-09 Thread Sebastian Zartner
! /be Sebastian Zartner wrote: So the question is, how to recruit a TC39 member? Through this list? Is it possible to become a member as a private person? ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Re: Look-behind proposal

2015-06-08 Thread Sebastian Zartner
So the question is, how to recruit a TC39 member? Through this list? Is it possible to become a member as a private person? Sebastian On 5 June 2015 at 14:58, Nozomu Katō noz...@akenotsuki.com wrote: Thank you for the clarification. Unfortunately, I do not know at all who is a TC39 member. I

Re: Look-behind proposal

2015-06-03 Thread Sebastian Zartner
Thank you for picking this up again! I asked for adding look-behinds back in 2013[1], though I didn't find the time to come up with an algorithm and read into writing this down for the specification. So let's hope this discussion will result in something this time. Sebastian [1]

Re: Multiline template strings that don't break indentation

2014-09-11 Thread Sebastian Zartner
The tag goes at the front. I know. I didn't see this functionality as a tag, though, but rather as a flag for the client. Having this functionality available as a tag has some consequences. See below. What's missing from the design that can't be provided as a standard exported deindent

Re: ... A community is writing the spec...

2014-09-10 Thread Sebastian Zartner
I don't see why you're complaining. If you don't like the features in ES6, then just don't use them. The features of ES5 are still available. If you want to have more strict code, then add a use strict; statement to your code. And if you're against adding more features to the core language, then

Re: Multiline template strings that don't break indentation

2014-09-10 Thread Sebastian Zartner
On 9 September 2014 16:51, Allen Wirfs-Brock al...@wirfs-brock.com wrote: Well, just for fun const N = \n; //maybe we could find evocative unicode name. var a = `This is a template string. ${ N}Even though each line is indented to keep the ${

Re: standardizing Error.stack or equivalent

2014-03-28 Thread Sebastian Zartner
Hi John, supposedly https://developers.google.com/chrome-developer-tools/docs/javascript-debugging#breakpoints-dynamic-javascript and http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl document the emerging de facto std for providing this name to the existing

Re: Array.prototype.contains

2014-03-05 Thread Sebastian Zartner
But it seems the thread fizzled out a couple years ago, and Array.prototype.contains didn't seem to make its way into ES6. That seems odd, since we do have String.prototype.contains, and it seemed like it was desirable for DOM. The DOM won't inherit from it directly, shall it? Why not?

Re: Add regular expressions lookbehind

2013-10-02 Thread Sebastian Zartner
for the lookbehind? Shortest first, longest first, or reverse string match? Greedy or not? Backtrack into capturing results? Waldemar On 09/28/2013 01:54 PM, Sebastian Zartner wrote: I wonder if the discussion about lookbehinds[1] and Marc Harter's proposal for them[2] in the past led

Re: Add regular expressions lookbehind

2013-10-02 Thread Sebastian Zartner
string match? Greedy or not? Backtrack into capturing results? Waldemar __**_ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/**listinfo/es-discusshttps://mail.mozilla.org/listinfo/es-discuss Sebastian Zartner

Add regular expressions lookbehind

2013-09-28 Thread Sebastian Zartner
I wonder if the discussion about lookbehinds[1] and Marc Harter's proposal for them[2] in the past led to anything. I'd really like to see these implemented in ECMAScript specification and it seems I am not the only one.[3][4][5] This even caused people to try to mimic them.[6] So I wanted to pick

Re: Continuing woes in reading the ES6 spec language

2013-09-13 Thread Sebastian Zartner
* You can pass undefined to trigger defaulting -- this is important for composition / delegation. No, it's a terrible feature :D i'm unaware of any language that supports arbitrary ordering of arguments. FWIW, ColdFusion allows to call functions with named parameters in an arbitrary