Re: effect of editor/ide on javascript programming-style

2019-06-28 Thread Charter
My anecdotal data point is I use Netbeans to build my javascript 3D engine, all in modules (where each module is a single class where the class definition is the default export.). This works really well for me, the only problem being the regular nature of the language problems. Hundreds of

Re: Removing the space in `a+ +b`?

2019-06-28 Thread Waldemar Horwat
On 6/28/19 8:41 AM, Isiah Meadows wrote: Currently, the production `a+ +b` requires a space to disambiguate it from the increment operator. However, `a++b` is not itself valid, as the postfix increment cannot be immediately followed by a bare identifier on the same line, nor can a prefix

Re: Removing the space in `a+ +b`?

2019-06-28 Thread Bob Myers
Personally I would reserve the `a ++ b` pattern for some future semantics for an infix version of the `++` operator, if anyone ever comes up with one. On Fri, Jun 28, 2019 at 12:37 PM guest271314 wrote: > > But more importantly, there is no point into searching for a solution > unless there is

Re: Removing the space in `a+ +b`?

2019-06-28 Thread guest271314
> But more importantly, there is no point into searching for a solution unless there is a problem. What is the problem with that space? Agree. The only applicable context which can fathom where the existence of a space character or not in source code would be golf. On Fri, Jun 28, 2019 at 5:38

Re: effect of editor/ide on javascript programming-style

2019-06-28 Thread kai zhu
i agree vim is efficient for switching between existing files/buffers. but *opening* new files is a PITA, which subtly affects programming-behavior of its users -- towards javascript-programming tending less towards fragmenting code with multiple files/modules (and more towards code-locality).

Re: effect of editor/ide on javascript programming-style

2019-06-28 Thread Andy Earnshaw
I would agree for Vim in its basic form but have successfully used vim, for several years, with the Ctrl+P extension to quickly and efficiently get around codebases with many files. It also has a buffer lookup for accessing already open files, and other shortcuts like Ctrl+B/Ctrl+6 make switching

Re: effect of editor/ide on javascript programming-style

2019-06-28 Thread kai zhu
3 frontend-devs is reasonable and maybe ideal -- but reality is most shops can only afford 1 frontend-dev. i remain convinced 5 js-devs is around the practical limit for most products. going over that magic-number, and people become confused about their areas-of-responsibility -- allowing

Re: effect of editor/ide on javascript programming-style

2019-06-28 Thread Jordan Harband
As much as I like vim, this seems like more of an argument against using vim than anything for the language - also it's not "usually" just 1 frontend developer; altho that may be your experience. I often like to say it's *never* just one - even if it's you, it's also "you in 6 months", and that

Re: Removing the space in `a+ +b`?

2019-06-28 Thread Claude Pache
> Le 28 juin 2019 à 19:03, guest271314 a écrit : > > Reversing the order does not require a space character > > ``` > +b+a > ``` If you have `+a + +b`, reversing order is not interesting. But more importantly, there is no point into searching for a solution unless there is a problem. What

Re: Removing the space in `a+ +b`?

2019-06-28 Thread guest271314
Reversing the order does not require a space character ``` +b+a ``` On Fri, Jun 28, 2019 at 3:42 PM Isiah Meadows wrote: > Currently, the production `a+ +b` requires a space to disambiguate it from > the increment operator. However, `a++b` is not itself valid, as the postfix > increment cannot

effect of editor/ide on javascript programming-style

2019-06-28 Thread kai zhu
adding a datapoint on effects of vim-editor on my javascript coding-style. this is to expand on discussion of "JavaScript and Syntax Research Methods" in tc39-notes [1]. vim has the following file-editing properties: 1. poor UX in opening new files 2. efficient content-search/jump/traversal of

Re: Removing the space in `a+ +b`?

2019-06-28 Thread Claude Pache
> Le 28 juin 2019 à 17:41, Isiah Meadows a écrit : > > Currently, the production `a+ +b` requires a space to disambiguate it from > the increment operator. However, `a++b` is not itself valid, as the postfix > increment cannot be immediately followed by a bare identifier on the same > line,

Re: Removing the space in `a+ +b`?

2019-06-28 Thread akxe
Why would you need it, there should not be need to type the second + as if the first is number it will be added anyway. -- Původní zpráva -- Od: Isiah Meadows Datum: 28. 6. 2019 v 17:44:35 Předmět: Removing the space in `a+ +b`? Currently, the production `a+ +b` requires a space

Removing the space in `a+ +b`?

2019-06-28 Thread Isiah Meadows
Currently, the production `a+ +b` requires a space to disambiguate it from the increment operator. However, `a++b` is not itself valid, as the postfix increment cannot be immediately followed by a bare identifier on the same line, nor can a prefix operator be preceded by one on the same line.

Re: Re: Proposal: Selector/Select Expression

2019-06-28 Thread Isiah Meadows
Note: the wildcard syntax `?.foo` would itself not require this. It'd require a space after the `?` in ternaries if the Elvis operator proposal `a ?? b` comes along (and a grammatical edit isn't made to clarify `??.` gets parsed as `? ?.`), but it would not otherwise be ambiguous. On Fri, Jun 28,

Re: Re: Proposal: Selector/Select Expression

2019-06-28 Thread Isiah Meadows
If missing, the expectation is that it's return `undefined` just like how `a.foo` returns `undefined` if `a` has no property `"foo"`. It's just shorthand for `x => x.foo` and similar. On Thu, Jun 27, 2019 at 20:30 guest271314 wrote: > How can the Selector/Select Expression be used with >

Re: Re: Proposal: Selector/Select Expression

2019-06-28 Thread Isiah Meadows
Agreed in that it's not ambiguous - you have to disambiguate it with a space for the same reason you have to use `a+ +b` instead of `a++b` in minified code to avoid ambiguity when specifying `a + +b`. So `a?.b:.c` would be invalid, but `a? .b:.c` is not. On Thu, Jun 27, 2019 at 16:48 Bob Myers