|
|
|
|
|
by cardanome
464 days ago
|
|
Thinking back on how Python 3 broke nearly all existing Python beginner code because they made print a function instead of a statement feels ironic now. Sure print being a function has slight benefits in certain cases but the Gleam team also makes very compelling arguments to implement echo as a special keyword. So what do we learn from that? Maybe don't do breaking changes to your language. Maybe debugging and actually printing should be separate things, one a statement, the other a function? I don't know. |
|
I’m not sure it’s possible to extrapolate any lessons for Python from this Gleam language feature or the chosen syntax.