Now, this is a big one! A lot of new awesome features to allow you to skip even more Scheme classes.
This release has the batteries included to leap ahead in racket development.
PYST now has full typed Tuple support that can be extremely convenient if you want to return multiple values from a function 😉
Ever missed the in
keyword? PYST now has you covered!
This is a big one: for loops now support multiple targets! Finally, useful nested lists and tuples! 🥳
Writing a sorting-algorithm implementation and want to swap values? The days of temporary variables are gone, just swap them like you are used to and let PYST do the work! 😎
A full list of all new features and fixes:
- Full tuple support
- Full tuple for loop
- Assert keyword
- For loop support for Tuple with multiple variables:
for x, y in ((1, 2)):
in
token as inif "a" in ["a", "b"]:
- MultiAssign list element swap (
seq[n - 1], seq[n] = seq[n], seq[n - 1]
) - AugAssign (
number += 17
) - Toggle for
(define (main) {Usercode})
to allow easier function (module) exports - Define
__name__
as"__main__"
- Escape
"
in constants - Add own type to type converters (
int(1)
) - Remove trailing space in
print(x, ...)
- Don't print non used function returns