Re: Scala considering significant indentation like Python

2017-05-22 Thread Mikhail V
> The creator of Scala, Martin Odersky, has proposed introducing Python-like > significant indentation to Scala and getting rid of braces: > > I was playing for a while now with ways to make Scala's syntax >indentation-based. I always admired the neatness of Python syntax >and also found

Re: Scala considering significant indentation like Python

2017-05-22 Thread Michael Torrie
On 05/22/2017 02:57 PM, Ethan Furman wrote: >> Kind of reminds me of LISP. Lots of closing parenths, and often then >> just all get stuck together on a long. But I guess that's why they >> invented paren matching shortcuts in editors. To make it easy to see if >> you have them matched up. This

Re: Scala considering significant indentation like Python

2017-05-22 Thread Ethan Furman
On 05/22/2017 12:13 PM, Michael Torrie wrote: On 05/22/2017 07:59 AM, Jussi Piitulainen wrote: I am the inventor of multiple ends on the same line. This way, in a language where all of several nested constructs end with an end - not going to name the language but it's Julia - instead of

Re: Survey: improving the Python std lib docs

2017-05-22 Thread rzed
A portion of this thread seems to be focusing on what key word args parameters actually mean, in the Python sense. There is documentation for that, and a modicum of experience with Python makes this a relatively simple question and answer. However, when docs for a specific function or method spe

Re: How to install Python package from source on Windows

2017-05-22 Thread eryk sun
On Sun, May 21, 2017 at 5:40 PM, bartc wrote: > I think it was YOU that got me wasting time downloading that VS2015 > solution, all 1MB of it [download size; unknown installation size], Visual Studio installs a multi-architecture (x86, x64, arm, arm64) build environment for native and managed

Re: Scala considering significant indentation like Python

2017-05-22 Thread Michael Torrie
On 05/22/2017 07:59 AM, Jussi Piitulainen wrote: > I am the inventor of multiple ends on the same line. This way, in a > language where all of several nested constructs end with an end - not > going to name the language but it's Julia - instead of > > end > end >

Re: getting the center of mass of each part of a molecule

2017-05-22 Thread jladasky
On Saturday, May 20, 2017 at 9:13:39 AM UTC-7, qasi...@gmail.com wrote > I have more than 100 ligand molecules. The image I showed at the beginning of > this discussion was only an example. It had missing atoms. > See it without missing any atom in the pdb format (coordinates in Angstrom > unit)

Re: Scala considering significant indentation like Python

2017-05-22 Thread oliver
Any nesting beyond third level should be strong candidate for refactoring. Soon after you do that, big surprise, refactored block gets better documented, gets used elsewhere, becomes testable on its own, etc. I.e. if structure is not obvious from indentation alone, refactoring is the proper solutio

Re: Scala considering significant indentation like Python

2017-05-22 Thread breamoreboy
On Monday, May 22, 2017 at 3:34:07 PM UTC+1, Serhiy Storchaka wrote: > 22.05.17 17:24, Skip Montanaro пише: > > On Mon, May 22, 2017 at 9:14 AM, bartc wrote: > >> I think 'end' can be used in Python too: > >> > >> if (cond): > >> stmts > >> end > >> > >> But: > >> > >> - You need to defi

Re: Scala considering significant indentation like Python

2017-05-22 Thread Serhiy Storchaka
22.05.17 17:24, Skip Montanaro пише: On Mon, May 22, 2017 at 9:14 AM, bartc wrote: I think 'end' can be used in Python too: if (cond): stmts end But: - You need to define a dummy variable 'end' Interesting idea. You can avoid the dummy variable part by just using '#end', however:

Re: Scala considering significant indentation like Python

2017-05-22 Thread Skip Montanaro
On Mon, May 22, 2017 at 9:14 AM, bartc wrote: > I think 'end' can be used in Python too: > > if (cond): > stmts > end > > But: > > - You need to define a dummy variable 'end' Interesting idea. You can avoid the dummy variable part by just using '#end', however: if cond: stmts #end Sk

Re: Scala considering significant indentation like Python

2017-05-22 Thread bartc
On 22/05/2017 14:59, Jussi Piitulainen wrote: Cholo Lennon writes: I am a huge python fan (but also a C++ and Java fan) and I agree with Scala creator, sometimes the readability is complicated. So, more often than I would like to, I end up missing the braces :-O I am the inventor of multipl

Re: Scala considering significant indentation like Python

2017-05-22 Thread Jussi Piitulainen
Cholo Lennon writes: > On 22/05/17 00:53, Steve D'Aprano wrote: >> The creator of Scala, Martin Odersky, has proposed introducing >> Python-like significant indentation to Scala and getting rid of >> braces: >> >> I was playing for a while now with ways to make Scala's syntax >> indentat

Re: Scala considering significant indentation like Python

2017-05-22 Thread Cholo Lennon
On 22/05/17 00:53, Steve D'Aprano wrote: The creator of Scala, Martin Odersky, has proposed introducing Python-like significant indentation to Scala and getting rid of braces: I was playing for a while now with ways to make Scala's syntax indentation-based. I always admired the neatnes

EuroPython 2017 Keynote: Aisha Bello & Daniele Procida

2017-05-22 Thread Alexander Hendorf
We are pleased to announce our next keynote speakers for EuroPython 2017: ** Aisha Bello & Daniele Procida ** About Aisha Aisha currently serves as vice chair for the Python Nigeria community. She has helped co-organized and support a number of Django