Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36448
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Objects what are they. |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | (4 earlier) <jnk5cehnidqfu0q591oau3ptqmq4bngcg2@4ax.com> <a3187f17-fe6f-4f52-b1bf-49a31435a290@googlegroups.com> <i5k6cehp2oede5n8eark4o9llji561h8r4@4ax.com> <XnsAA3DD7975A507eejj99@194.109.6.166> <ee2dcf9c-ba87-4a8f-ac5a-31b8637bbc26@googlegroups.com> |
| Date | 2019-04-26 23:32 +0200 |
| Message-ID | <XnsAA3DEF7E3DD87eejj99@194.109.6.166> (permalink) |
jonas.thornvall@gmail.com wrote on 26 Apr 2019 in comp.lang.javascript:
> Den fredag 26 april 2019 kl. 21:12:12 UTC+2 skrev Evertjan.:
>> John G Harris <niam@jghnorth.org.uk.invalid> wrote on 26 Apr 2019 in
>> comp.lang.javascript:
>>
>> > On Fri, 26 Apr 2019 04:37:49 -0700 (PDT), jonas.thornvall@gmail.com
>> > wrote:
>> >
>> > <snip>
>> >>What is the difference between a nested object and a tree?
>> >
>> > "tree" is a general name. A tree can be implemented in many ways. A
>> > nested object is one way. (And there may be several meanings of
>> > "nested object".)
>>
>> In JS:
>>
>> There is no such thing as a "nested object" as a SPECIAL object.
>>
>> It is just that an element of an object can be an object itself,
>> so you could call it a "nested object", but that is just its location.
>>
>> Indeed, a "tree" is just a way of viewing and organizing a related buch
>> of data, independent of if you use an object, an array, just a naming
>> convention, etc.
>>
>> --
>> Evertjan.
>> The Netherlands.
>> (Please change the x'es to dots in my emailaddress)
>
> Given this pseudo code "disregard my comments"
> Would you call it an object or a tree?
>
> And how would ***you*** chose to implement it in Javascript Evertjan a
> tree or object? If you have trouble decode my pseudo syntax do not
> hesitate to ask. Because subject i do not fullly understand interest me.
>
> Obj. Synth:
> // Prop.
> Synth[](InstrumentIndex,InstrumentName,Bank)
> // SubProp/obj.
> Bank[](Bankindex,Bankname,(Instrument))
> // SubProp/obj.
> Instrument[](Instrumentindex,Instrumentname,(Note))
> // SubProp.
> Note[](Notename);
const Synth = {};
Deeper down, I don't understand what your pseudocode means.
I could guess, but it seems to me it is your task to work it out.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Objects what are they. jonas.thornvall@gmail.com - 2019-04-25 02:16 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-25 02:40 -0700
Re: Objects what are they. groovee@cyberdude.com - 2019-04-25 09:12 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-25 18:37 +0100
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-25 23:41 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-25 23:56 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-26 00:00 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-26 10:45 +0100
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-26 04:37 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-26 19:41 +0100
Re: Objects what are they. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-04-26 21:11 +0200
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-26 13:23 -0700
Re: Objects what are they. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-04-26 23:32 +0200
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-26 15:11 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-26 15:24 -0700
Re: Objects what are they. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-04-27 11:52 +0200
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-27 11:17 +0100
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-27 05:00 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-27 05:06 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-27 11:08 +0100
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-28 05:03 -0700
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-28 18:11 +0200
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-29 03:43 -0700
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-29 14:11 +0200
Re: Objects what are they. John-Paul Stewart <jpstewart@sympatico.ca> - 2019-04-29 11:15 -0400
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-29 08:41 -0700
Re: Objects what are they. John-Paul Stewart <jpstewart@sympatico.ca> - 2019-04-29 15:16 -0400
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-29 15:56 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-29 16:08 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-29 16:30 -0700
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-29 09:44 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-29 08:31 -0700
Re: Objects what are they. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-04-26 13:48 +0200
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-26 00:25 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-26 00:30 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-26 01:06 -0700
Re: Objects what are they. groovee@cyberdude.com - 2019-04-26 07:41 -0700
Re: Objects what are they. Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-04-26 15:39 +0000
Re: Objects what are they. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-04-26 23:23 +0200
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-27 11:25 +0100
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-27 04:10 -0700
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-27 04:17 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-27 14:39 +0100
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-27 10:16 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-28 10:53 +0100
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-29 07:08 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-30 11:03 +0100
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-27 14:43 +0100
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-26 19:36 +0100
Re: Objects what are they. groovee@cyberdude.com - 2019-04-28 08:53 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-29 10:35 +0100
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-27 17:45 +0200
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-27 10:19 -0700
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-27 20:57 +0200
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-29 06:53 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-29 15:08 +0100
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-29 19:21 +0200
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-29 20:06 +0100
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-29 23:09 +0200
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-30 10:39 +0100
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-30 14:06 +0200
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-30 05:26 -0700
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-30 19:14 +0200
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-30 12:07 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-05-01 14:29 +0100
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-05-01 07:52 -0700
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-05-01 18:34 +0100
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-30 18:27 +0100
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-04-30 18:22 +0100
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-30 22:25 +0200
Re: Objects what are they. John G Harris <niam@jghnorth.org.uk.invalid> - 2019-05-01 15:15 +0100
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-29 18:31 +0200
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-29 09:42 -0700
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-29 19:42 +0200
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-29 17:35 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-30 00:18 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-30 06:00 -0700
Re: Objects what are they. Julio Di Egidio <julio@diegidio.name> - 2019-04-30 06:16 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-30 06:38 -0700
Re: Objects what are they. jonas.thornvall@gmail.com - 2019-04-30 06:21 -0700
Re: Objects what are they. groovee@cyberdude.com - 2019-04-28 08:43 -0700
Re: Objects what are they. "R.Wieser" <address@not.available> - 2019-04-28 19:02 +0200
Re: Objects what are they. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-04-26 23:07 +0200
csiph-web