Click here to Skip to main content
15,886,873 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: What is your language feature wish list? Pin
Roger Wright1-Feb-23 21:13
professionalRoger Wright1-Feb-23 21:13 
AnswerRe: What is your language feature wish list? Pin
Niels Holst1-Feb-23 21:15
professionalNiels Holst1-Feb-23 21:15 
GeneralRe: What is your language feature wish list? Pin
trønderen2-Feb-23 2:34
trønderen2-Feb-23 2:34 
GeneralRe: What is your language feature wish list? Pin
Niels Holst2-Feb-23 3:26
professionalNiels Holst2-Feb-23 3:26 
GeneralRe: What is your language feature wish list? Pin
trønderen2-Feb-23 4:18
trønderen2-Feb-23 4:18 
GeneralRe: What is your language feature wish list? Pin
Niels Holst2-Feb-23 4:22
professionalNiels Holst2-Feb-23 4:22 
AnswerRe: What is your language feature wish list? Pin
Cpichols2-Feb-23 1:33
Cpichols2-Feb-23 1:33 
GeneralRe: What is your language feature wish list? Pin
Jeremy Falcon2-Feb-23 6:44
professionalJeremy Falcon2-Feb-23 6:44 
Cpichols wrote:
I do wish that JavaScript could handle associative arrays (not objects) in foreach loops where keys and values could be easily accessed for each item in the array
Most times people blame the language when it's really due to them not studying the language.
JavaScript
const data = [];

data['a'] = 200;
data['b'] = 300;

for (const datum in data) {
  console.info(`${datum}: ${data[datum]}`);
}
Cpichols wrote:
and so that it could be done recursively
No language I've ever used does recursive traversing of objects automatically in a loop. Why would JavaScript be more difficult to understand?
Jeremy Falcon

AnswerRe: What is your language feature wish list? Pin
trønderen2-Feb-23 4:06
trønderen2-Feb-23 4:06 
AnswerRe: What is your language feature wish list? Pin
BernardIE53172-Feb-23 6:32
BernardIE53172-Feb-23 6:32 
GeneralRe: What is your language feature wish list? Pin
trønderen2-Feb-23 12:00
trønderen2-Feb-23 12:00 
AnswerRe: What is your language feature wish list? Pin
Member 133016792-Feb-23 9:02
Member 133016792-Feb-23 9:02 
AnswerRe: What is your language feature wish list? Pin
englebart2-Feb-23 14:35
professionalenglebart2-Feb-23 14:35 
AnswerRe: What is your language feature wish list? Pin
Chad3F3-Feb-23 10:00
Chad3F3-Feb-23 10:00 
GeneralCCC 01-02-2023 Pin
pkfox31-Jan-23 22:08
professionalpkfox31-Jan-23 22:08 
GeneralRe: CCC 01-02-2023 Pin
FreedMalloc31-Jan-23 22:48
FreedMalloc31-Jan-23 22:48 
GeneralRe: CCC 01-02-2023 - winner ! Pin
pkfox31-Jan-23 23:02
professionalpkfox31-Jan-23 23:02 
GeneralRe: CCC 01-02-2023 - winner ! Pin
OriginalGriff31-Jan-23 23:08
mveOriginalGriff31-Jan-23 23:08 
GeneralRe: CCC 01-02-2023 - winner ! Pin
pkfox31-Jan-23 23:41
professionalpkfox31-Jan-23 23:41 
GeneralRe: CCC 01-02-2023 - winner ! Pin
FreedMalloc1-Feb-23 2:46
FreedMalloc1-Feb-23 2:46 
GeneralWordle 592 Pin
StarNamer@work31-Jan-23 13:51
professionalStarNamer@work31-Jan-23 13:51 
GeneralRe: Wordle 592 Pin
Sandeep Mewara31-Jan-23 15:24
mveSandeep Mewara31-Jan-23 15:24 
GeneralRe: Wordle 592 Pin
Amarnath S31-Jan-23 16:07
professionalAmarnath S31-Jan-23 16:07 
GeneralRe: Wordle 592 Pin
Shane010331-Jan-23 17:23
Shane010331-Jan-23 17:23 
GeneralRe: Wordle 592 Pin
OriginalGriff31-Jan-23 19:04
mveOriginalGriff31-Jan-23 19:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.