Got a job this summer so.

Mcmenamy: So javascript can have php like arrays?

Cosden: With there being strings inside of the array?

Klocke: Like arrayName’randomArray’ = 15?

Palmese: Theweirdn8: Yes and no.

Hannes: Theweirdn8: Unlike PHP, arrays in JS can only have numeric keys

Raith: Theweirdn8: If you want a key/value php-style array, you can use an object.

Behringer: HashA = entityA._roId + ‘:’ + entityB._roId;hashB = entityB._roId + ‘:’ + entityA._roId; if !checkedhashA && !checkedhashB {     // mark this pair as checked    checkedhashA = checkedhashB = true;

Rosetti: Http://

Kamber: Its weird, but it looks pretty php like to me

Beesley: Im almost done making my updates to collision system and i cant understand if that works properly and if so why

Moises: Theweirdn8: If “checked” is an object, that code is fine.

Loegering: For 2 map.{age} = age; the . in {age} demotes the array which is an object, and the {age} grabs the age property? What do***entation would I look at to understand what it’s doing?

Libberton: Protomega, it’s called destructuring

Altomari: It’s like var age = arguments0.age

Balling: Protomega: Let’s say you have const person = {name: ‘foo’, age: 10}; You can do const {age} = person; to declare a new variable called “age” with person.age ***igned to it.

Vogus: You can even give it a new name: const {age:newAge} = person;

Sumruld: Dont think checked is anything

Pickl: I don see its declaration

Kurtzer: Theweirdn8: It can only be var checked = {}; to be right

Mcglumphy: And not: var checked = ; which would be wrong.

Masom: Var checked = {} ,pairs = ,entityA ,entityB ,hashA ,hashB ,i ,j ,k ,l ,gridCol ,gridCell

Kiphart: But can u help me understand

Hoover: When they do checked’bla’ = true

Esterly: What does that mean exactly?

Ursini: In general or in that specific code?

Carolan: They could have used a number or a string instead of true

Krzeczkowski: But that looks like its making arrayNamestringName = variable

Kehl: That is allowed in javascript?

Coram: is the same as foo’bar’

Wee: The latter is more flexible though

Megia: But the 1st one is what works here since im combining 2 unique ids and such

Sessoms: So what am I doing wrong with this one rcyr?,console

Proscia: Foo’I am crazy’ is allowed while there’s no way to express that with the . notation

Klopp: I would love for C++ to do something like that

Keliipaakaua: Protomega: Why the :22 thing?

Alvizo: Protomega: What do you want to do?

Digman: But that would be foo.iamcrazy essentially rite?

Cardone: Theweirdn8: No, because you cannot have spaces if you use the “dot” notation

Preuitt: Foo’I am crazy’ is simply impossible to access using the “dot” notation

Manchini: Theweirdn8: In C++, you would use a std::map

Orttenburger: Set age to 22. But I see what you’re saying. so var age = 22; {age} = person; changes it to 22 while {age:newAge} = person would make it so instead of person.age it is person.newAge

Turli: Protomega: No, const {age:newAge} declares a variable “newAge” containing the value of “age”

Charisse: This one key to why this notation work has caused me alot of stress for my game engine

Urbanic: But now its time to finish up my collision system and move on with the ide for it

Kyseth: Http://

Lobel: Got a job this summer so udpates kinda slow