Is gleam a subset of Python? #2057
pwtail
started this conversation in
Ideas & suggestions
Replies: 5 comments 6 replies
-
Hi @pwtail ! No, Gleam is not a Python subset, it is very different in many ways. I would be happy to go into any details you may be interested in. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you don't mind... then what are the parts missing from Python?
I have found one thing myself, that is the pipeline operator. Will you find
more?)
ср, 8 мар. 2023 г., 15:48 Louis Pilfold ***@***.***>:
… Hi @pwtail <https://github.com/pwtail> ! No, Gleam is not a Python
subset, it is very different in many ways. I would be happy to go into any
details you may be interested in.
—
Reply to this email directly, view it on GitHub
<#2057 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2OEIAIK7JQRA7VTI52ZM3W3CL4RANCNFSM6AAAAAAVTYFHTA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
and there are many features that Python has that Gleam deliberately does not.
That's why I used the word "subset". The runtime is different too, there is
no doubt about it.
I've read somewhere the inspiration for the "use" keyword was the python's
'with', so I didn't count it.
ср, 8 мар. 2023 г., 16:03 Louis Pilfold ***@***.***>:
… Other language features include the static type system, compile time
resolution of function argument labels, tail call optimisation, different
semantics for pattern matching, use expressions, and a very different
syntax that will allow things like multi-statement lambda functions. If you
look at the runtime, the tooling, and the ecosystem there are further
differences too, and there are many features that Python has that Gleam
deliberately does not.
—
Reply to this email directly, view it on GitHub
<#2057 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2OEIFILLXZZMMTR7CNPVLW3CNUVANCNFSM6AAAAAAVTYFHTA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Sorry I feel I'm being very rude right now. The first thing is that gleam
does things just right and I'm very impressed.
ср, 8 мар. 2023 г., 16:12 Абеткин Виталий ***@***.***>:
… >and there are many features that Python has that Gleam deliberately does
not.
That's why I used the word "subset". The runtime is different too, there
is no doubt about it.
I've read somewhere the inspiration for the "use" keyword was the python's
'with', so I didn't count it.
ср, 8 мар. 2023 г., 16:03 Louis Pilfold ***@***.***>:
> Other language features include the static type system, compile time
> resolution of function argument labels, tail call optimisation, different
> semantics for pattern matching, use expressions, and a very different
> syntax that will allow things like multi-statement lambda functions. If you
> look at the runtime, the tooling, and the ecosystem there are further
> differences too, and there are many features that Python has that Gleam
> deliberately does not.
>
> —
> Reply to this email directly, view it on GitHub
> <#2057 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AD2OEIFILLXZZMMTR7CNPVLW3CNUVANCNFSM6AAAAAAVTYFHTA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Python has decorators, on the other hand)
ср, 8 мар. 2023 г., 16:41 Louis Pilfold ***@***.***>:
… While with was one of the influences use is very different and vastly
more powerful. If anything one of the things that inspired use was my
frustrations with how limited with is in Python 😁
—
Reply to this email directly, view it on GitHub
<#2057 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2OEICBBZDACIIBOP7LAZ3W3CSB5ANCNFSM6AAAAAAVTYFHTA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @lpil
I happen to be a Python developer, and I think noticed a thing: is gleam a subset of Python? Python has added the match..case statement in 3.10 for pattern matching, with types, guards and everything.
Of course, Python is not a functional language, so
if
,for
andmatch
are not expressions, but simply blocks. But other than that?Yes, I know, Jose already used the Ruby syntax. But he copied the OOP part, which he shouldn't! By no means! :)
Beta Was this translation helpful? Give feedback.
All reactions