Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-12 Thread Carl Smith
Alberto, CoffeeScript is a popular language that is widely considered to represent JavaScript's best bits, and it only has anonymous functions, so there's a large part of the JS community that disagrees with you there. Browsers actually do identify anonymous functions, based on the variable/prope

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-12 Thread Nick Coghlan
On 12 August 2017 at 06:10, Chris Barker wrote: > >> > Taking this off the list as it's no longer on topic. > > > not totally -- I'm going to add my thoughts: > > 1) If you want a smoother transition between server-side Python and > in-browser code, maybe you're better off using one of the "pytho

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-12 Thread Alberto Berti
> "Carl" == Carl Smith writes: Carl> Using lambdas doesn't solve the problem. I just kept the example short, but Carl> had I used more than one expression in each function, you'd be back to Carl> square one. You took advantage of the brevity of the example, but it's not Carl

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-12 Thread Alberto Berti
> "Chris" == Chris Angelico writes: Chris> On Sat, Aug 12, 2017 at 6:31 AM, Alberto Berti wrote: >> As of now, I do nothing. As I said, the goal of the tool is not to >> shield you from JS, for this reason it's not meant for beginners (in >> both JS or Python). You always m

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Steven D'Aprano
Hi Jason, and welcome! On Fri, Aug 11, 2017 at 04:57:46PM +0200, Jason H wrote: > Before I done my firesuit, I'd like to say that I much prefer python > and I rail on JS whenever I can. However these days it is quite common > to be doing work in both Python and Javascript. Harmonizing the two

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Alberto Berti
> "Carl" == Carl Smith writes: Carl> Using lambdas doesn't solve the problem. I just kept the example short, but Carl> had I used more than one expression in each function, you'd be back to Carl> square one. You took advantage of the brevity of the example, but it's not Carl

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Chris Angelico
On Sat, Aug 12, 2017 at 10:15 AM, Carl Smith wrote: > Using lambdas doesn't solve the problem. I just kept the example short, but > had I used more than one expression in each function, you'd be back to > square one. You took advantage of the brevity of the example, but it's not > realistic. > > T

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Carl Smith
Using lambdas doesn't solve the problem. I just kept the example short, but had I used more than one expression in each function, you'd be back to square one. You took advantage of the brevity of the example, but it's not realistic. There are lots of language specific features that library authors

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Alberto Berti
> "Carl" == Carl Smith writes: Carl> Python is not a good fit for the browser, in part, because of the syntax. Carl> JavaScript has issues, but its syntax is better suited to creating GUIs in Carl> the browser. Just so? Carl> For example, in browsers everything revolves ar

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Carl Smith
Python is not a good fit for the browser, in part, because of the syntax. JavaScript has issues, but its syntax is better suited to creating GUIs in the browser. For example, in browsers everything revolves around a single threaded event loop, so you have a lot of callbacks and event handlers, whic

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Chris Angelico
On Sat, Aug 12, 2017 at 6:31 AM, Alberto Berti wrote: > It's not really so confusing, most code I wrote with it it's perfectly > understandable Python code. For me, one thing is the language, one other > thing are the libraries or the builtin classes it's usually shipped > with. > > The tool reads

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Alberto Berti
> "Chris" == Chris Angelico writes: Chris> Speaking as someone whose day job is teaching Python and Chris> JavaScript, I have some "I'm a good teacher" stickers laying somewhere, do you want me to send them to you so you can put them somewhere? Chris> I don't like the idea of

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Chris Barker
> > Taking this off the list as it's no longer on topic. > not totally -- I'm going to add my thoughts: 1) If you want a smoother transition between server-side Python and in-browser code, maybe you're better off using one of the "python in the browser" solutions -- there are at least a few viab

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Chris Angelico
On Sat, Aug 12, 2017 at 5:47 AM, Chris Angelico wrote: > > Taking this off the list as it's no longer on topic. ... at least, I *thought* I was taking it off list. Between me and Gmail, some thoughts got crossed. Sorry! ChrisA ___ Python-ideas mailing

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Chris Angelico
On Sat, Aug 12, 2017 at 5:42 AM, Joao S. O. Bueno wrote: > > > Well,I hope you both had at least skimmed over "brython" - it started a > couple years ago > with somewhat the same "won't o full Python purpose" - but nowadays they > have a > very conformant implementation of Python3 that is transpi

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Joao S. O. Bueno
On 11 August 2017 at 16:19, Chris Angelico wrote: > On Sat, Aug 12, 2017 at 5:13 AM, Alberto Berti > wrote: > > Chris> What do you do about all the places where the languages have > > Chris> significantly different semantics? For instance, a Python > integer can > > Chris> store more

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Chris Angelico
On Sat, Aug 12, 2017 at 5:13 AM, Alberto Berti wrote: > Chris> What do you do about all the places where the languages have > Chris> significantly different semantics? For instance, a Python integer > can > Chris> store more values than a Python float (which is broadly compatible >

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Alberto Berti
> "Chris" == Chris Angelico writes: Chris> On Sat, Aug 12, 2017 at 3:04 AM, Alberto Berti wrote: >> For the goal of reducing the friction (the mind switching when working >> with both the languages) I have created a tool ( >> https://github.com/azazel75/metapensiero.pj ) whi

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Brendan Barnwell
On 2017-08-11 07:57, Jason H wrote: Before I done my firesuit, I'd like to say that I much prefer python and I rail on JS whenever I can. However these days it is quite common to be doing work in both Python and Javascript. Harmonizing the two would help JS developers pick up the language as well

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Chris Angelico
On Sat, Aug 12, 2017 at 3:04 AM, Alberto Berti wrote: > For the goal of reducing the friction (the mind switching when working > with both the languages) I have created a tool ( > https://github.com/azazel75/metapensiero.pj ) which allows me to write > valid Python and translates this to nice JS w

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Alberto Berti
> "Jason" == Jason H writes: Jason> While JS is strongly for web (Node.JS, Browsers) and Python has a weak Jason> showing (Tornado, Flask), Python is very popular on everything else on Jason> the backend where JS isn't and isn't likely to be. The I'm making Jason> point is

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Chris Angelico
On Sat, Aug 12, 2017 at 1:35 AM, Jason H wrote: > Thank for all the feedback so far, even if it's not the most enthusiastic > response to the ideas. > > One thing I missed, and I don't know how I could (total face-palm) is: > 4. Other list methods: i.e. and specifically: [].push(item) vs [].appen

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Jason H
:57 AM > From: "Jason H" > To: python-ideas@python.org > Subject: [Python-ideas] Towards harmony with JavaScript? > > Before I done my firesuit, I'd like to say that I much prefer python and I > rail on JS whenever I can. However these days it is quite common to

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Chris Angelico
On Sat, Aug 12, 2017 at 12:57 AM, Jason H wrote: > Before I done my firesuit, I'd like to say that I much prefer python and I > rail on JS whenever I can. However these days it is quite common to be doing > work in both Python and Javascript. Harmonizing the two would help JS > developers pick

Re: [Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Alex Walters
> -Original Message- > From: Python-ideas [mailto:python-ideas-bounces+tritium- > list=sdamon@python.org] On Behalf Of Jason H > Sent: Friday, August 11, 2017 10:58 AM > To: python-ideas@python.org > Subject: [Python-ideas] Towards harmony with JavaScript? >

[Python-ideas] Towards harmony with JavaScript?

2017-08-11 Thread Jason H
Before I done my firesuit, I'd like to say that I much prefer python and I rail on JS whenever I can. However these days it is quite common to be doing work in both Python and Javascript. Harmonizing the two would help JS developers pick up the language as well as people like me that are stuck w