4 ms·
> Noone asks you to use Brython. From the article: > Brython is designed to replace Javascript as the scripting language for the Web. So it does sound like t
by dghf 6y ago
> Noone asks you to use Brython.
From the article:
> Brython is designed to replace Javascript as the scripting language for the Web.
So it does sound like they are asking people to use Brython instead of JavaScript.
> it does have anonymous functions: lambda.
But they're not fully featured functions, though, being restricted to a single expression.
- blumomo 6y agoI would differentiate between marketing speak (designed to replace Javascript) and the practical implications of Brython (designed for folks who want to use Python in frontend)
- jbreckmckye 6y agoIf I were a JS developer who only wanted to write JS, but I needed to do a database query, should I look for a database that lets me write queries in JavaScript (or a language basically interchangeable with JS)? Or should I just learn SQL? Sometimes as a programmer you need to learn new tools for new domains, and that's not necessarily a bad thing.
- linkdd 6y agoThis. Too often I've seen companies stuck with an old framework just because their developers are used to it. That's how you get a microservice architecture in Java where each containers takes 300MB of space, and requires 1GB of memory.
- Godel_unicode 6y agoI'm frankly amazed that the people who brought us node.js haven't also created a JS query language, furthering the spread of the triple-equals to new and greater heights.
- 7952 6y agoI wonder if those kind of anoymous functions could be replaced using coroutines? So an event handeler could look like... async for event in element.on("click"): console.log("click")