isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

Tutorial uses `.x`, but it doesn't reflect the current version. #137

Closed mechalynx closed 9 years ago

mechalynx commented 9 years ago

The way .x works has changed from when the tutorial was written and I can't find a way to create equivalent code in the current version. .x used to be product() but now is try-except.

orlp commented 9 years ago

@MechaLynx We realized the old .x was unnecessary, because folding multiplication (*F) does the same thing.

mechalynx commented 9 years ago

Is there a plan to change the character set any further in the near future? I'm asking so I know if it's practical to fix the docs now, as I go through the tutorial, or wait for changes, if there are any planned.

isaacg1 commented 9 years ago

There aren't any plans to do so, but backwards incompatible changes are made fairly often.

mechalynx commented 9 years ago

That's fine. I'm not very experienced with Python though, so some cases are probably outside my reach to fix (like the .x one) - should I just leave the text as it is wherever I can't fix it and link to an issue or just add a note in italics indicating this no longer works?

isaacg1 commented 9 years ago

Noting that it no longer works is fine, if you need to.

isaacg1 commented 9 years ago

Alright, I fixed the example to use .!, the factorial function. Thanks for your help keeping the docs up to date.