• Will this send it into an infinite loop?

    From groovee@groovee@cyberdude.com to comp.lang.javascript on Fri Nov 2 11:14:12 2018
    From Newsgroup: comp.lang.javascript

    function Set() {
    blah blah

    let intersectionSet = new Set();

    }

    Will this send it into an infinite loop when the "Set" class is instantiated? If not, why not?
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Evertjan.@exxjxw.hannivoort@inter.nl.net to comp.lang.javascript on Sat Nov 3 10:47:17 2018
    From Newsgroup: comp.lang.javascript

    groovee@cyberdude.com wrote on 02 Nov 2018 in comp.lang.javascript:

    function Set() {
    blah blah

    let intersectionSet = new Set();

    }

    Will this send it into an infinite loop when the "Set" class is
    instantiated? If not, why not?

    Did you test it?

    If so, what was the result, and on what engine?
    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From John G Harris@niam@jghnorth.org.uk.invalid to comp.lang.javascript on Sat Nov 3 14:37:29 2018
    From Newsgroup: comp.lang.javascript

    On Fri, 2 Nov 2018 11:14:12 -0700 (PDT), groovee@cyberdude.com wrote:

    function Set() {
    blah blah

    let intersectionSet = new Set();

    }

    Will this send it into an infinite loop when the "Set" class is instantiated? If not, why not?

    It won't be an *infinite* loop. At best, after a billion or so
    iterations your PC will run out of room for more objects and stop or
    squeal or something else dramatic.

    In practice, it will probably stop after fewer iterations.

    John
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From groovee@groovee@cyberdude.com to comp.lang.javascript on Tue Nov 6 09:56:22 2018
    From Newsgroup: comp.lang.javascript

    On Saturday, 3 November 2018 15:17:42 UTC+5:30, Evertjan. wrote:


    Did you test it?

    If so, what was the result, and on what engine?


    Uhh no - actually I read suchlike code in a book I was reading, which struck me as Very Peculiar, which is why I decided to ask here straightaway....

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Evertjan.@exxjxw.hannivoort@inter.nl.net to comp.lang.javascript on Tue Nov 6 23:12:53 2018
    From Newsgroup: comp.lang.javascript

    groovee@cyberdude.com wrote on 06 Nov 2018 in comp.lang.javascript:

    On Saturday, 3 November 2018 15:17:42 UTC+5:30, Evertjan. wrote:


    Did you test it?

    If so, what was the result, and on what engine?


    Uhh no - actually I read suchlike code in a book I was reading, which
    struck me as Very Peculiar, which is why I decided to ask here straightaway....

    Don't you think that is the wrong approach,
    if and when you want to learn something about Javascript?
    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From groovee@groovee@cyberdude.com to comp.lang.javascript on Thu Nov 8 03:02:25 2018
    From Newsgroup: comp.lang.javascript

    On Wednesday, 7 November 2018 03:43:10 UTC+5:30, Evertjan. wrote:

    Don't you think that is the wrong approach,
    if and when you want to learn something about Javascript?

    Uhh...some times you want some *human interaction*, steadof just...sitting there with a book and the computer, you know...? :) I don't have like, a teacher in real life teaching me this stuff....?
    Whatever :)

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Evertjan.@exxjxw.hannivoort@inter.nl.net to comp.lang.javascript on Thu Nov 8 12:23:20 2018
    From Newsgroup: comp.lang.javascript

    groovee@cyberdude.com wrote on 08 Nov 2018 in comp.lang.javascript:

    On Wednesday, 7 November 2018 03:43:10 UTC+5:30, Evertjan. wrote:

    Don't you think that is the wrong approach,
    if and when you want to learn something about Javascript?

    Uhh...some times you want some *human interaction*, steadof
    just...sitting there with a book and the computer, you know...? :) I
    don't have like, a teacher in real life teaching me this stuff....?

    Well, it sounds more like 12 year old asking his or her mother:
    "Can you please tie my shoelaces"
    without first trying to do it him- or herself.

    That 'can' be needed to force human interaction indeed.

    Whatever :)

    Rather.

    Oh sorry, modern youths walk around with untied shoelaces, I am told,
    and prefer to occasionally fall flat on their faces and skin their noses.
    This can easily be done with Javascript too.
    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From groovee@groovee@cyberdude.com to comp.lang.javascript on Fri Nov 9 02:37:41 2018
    From Newsgroup: comp.lang.javascript

    On Thursday, 8 November 2018 16:53:23 UTC+5:30, Evertjan. wrote:

    Oh sorry, modern youths walk around with untied shoelaces, I am told,
    and prefer to occasionally fall flat on their faces and skin their noses. This can easily be done with Javascript too.


    Umm...."tying my own shoelaces" wouldn't have answered the question "If not, WHY not"....
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Evertjan.@exxjxw.hannivoort@inter.nl.net to comp.lang.javascript on Fri Nov 9 17:42:16 2018
    From Newsgroup: comp.lang.javascript

    groovee@cyberdude.com wrote on 09 Nov 2018 in comp.lang.javascript:

    On Thursday, 8 November 2018 16:53:23 UTC+5:30, Evertjan. wrote:

    Oh sorry, modern youths walk around with untied shoelaces, I am told,
    and prefer to occasionally fall flat on their faces and skin their
    noses. This can easily be done with Javascript too.


    Umm...."tying my own shoelaces" wouldn't have answered the question "If
    not, WHY not"....

    Perhaps their shoes have unties,
    like undies are white if undyed?
    or modern youths feel undied?

    In general the nul-hypothesis is that something specific is NOT so,
    and then "why not?" is only psychologically important.
    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
    --- Synchronet 3.20a-Linux NewsLink 1.114