Re: General computer language, syntax question.

2016-03-01 Thread Steven D'Aprano
On Tue, 1 Mar 2016 12:56 am, jonas.thornv...@gmail.com wrote: > I mean for for example Javascript Jonas, this is a Python forum. If we thought Javascript was a beautiful and well-designed language, we're be on a Javascript forum, complaining about Python. > if (typeof array[index] !== 'undefine

Re: General computer language, syntax question.

2016-02-29 Thread Joel Goldstick
On Mon, Feb 29, 2016 at 9:39 AM, Mark Lawrence wrote: > On 29/02/2016 13:45, jonas.thornv...@gmail.com wrote: > >> I have a problem programming uniform networks, "x nodes with y links" >> that turn out to be really hairy to solve for me and i feel i really lack >> the programming features >> >> "

Re: General computer language, syntax question.

2016-02-29 Thread Ian Kelly
On Feb 29, 2016 7:11 AM, wrote: > > Sorry but would not if (array==empty) suffice and be alot clearer? In Python, you can just do "if len(array) == 0" or "if not array". In JavaScript you have "if (array.length === 0)". Is there some problem with that? I would prefer this over your suggestion s

Re: General computer language, syntax question.

2016-02-29 Thread Mark Lawrence
On 29/02/2016 13:45, jonas.thornv...@gmail.com wrote: I have a problem programming uniform networks, "x nodes with y links" that turn out to be really hairy to solve for me and i feel i really lack the programming features "Actually i program in javascript" but the problem seem general for all

Re: General computer language, syntax question.

2016-02-29 Thread Joel Goldstick
On Mon, Feb 29, 2016 at 9:05 AM, wrote: > Den måndag 29 februari 2016 kl. 14:57:04 UTC+1 skrev jonas.t...@gmail.com: > > Den måndag 29 februari 2016 kl. 14:45:37 UTC+1 skrev > jonas.t...@gmail.com: > > > I have a problem programming uniform networks, "x nodes with y links" > that turn out to be r

Re: General computer language, syntax question.

2016-02-29 Thread jonas . thornvall
Den måndag 29 februari 2016 kl. 14:57:04 UTC+1 skrev jonas.t...@gmail.com: > Den måndag 29 februari 2016 kl. 14:45:37 UTC+1 skrev jonas.t...@gmail.com: > > I have a problem programming uniform networks, "x nodes with y links" that > > turn out to be really hairy to solve for me and i feel i really

Re: General computer language, syntax question.

2016-02-29 Thread MRAB
On 2016-02-29 13:45, jonas.thornv...@gmail.com wrote: I have a problem programming uniform networks, "x nodes with y links" that turn out to be really hairy to solve for me and i feel i really lack the programming features "Actually i program in javascript" but the problem seem general for all

Re: General computer language, syntax question.

2016-02-29 Thread Joel Goldstick
On Mon, Feb 29, 2016 at 8:45 AM, wrote: > I have a problem programming uniform networks, "x nodes with y links" that > turn out to be really hairy to solve for me and i feel i really lack the > programming features > > "Actually i program in javascript" but the problem seem general for all > prog

Re: General computer language, syntax question.

2016-02-29 Thread jonas . thornvall
Den måndag 29 februari 2016 kl. 14:45:37 UTC+1 skrev jonas.t...@gmail.com: > I have a problem programming uniform networks, "x nodes with y links" that > turn out to be really hairy to solve for me and i feel i really lack the > programming features > > "Actually i program in javascript" but th

General computer language, syntax question.

2016-02-29 Thread jonas . thornvall
I have a problem programming uniform networks, "x nodes with y links" that turn out to be really hairy to solve for me and i feel i really lack the programming features "Actually i program in javascript" but the problem seem general for all programming languages including Pyhton. For a beauti