Pythoff

From Esolang
Jump to navigation Jump to search

Pythoff is a Python 3 dialect by User:Yes

Additions/Diffrences

Pythoff does not have library importing, making it very limited in software development, but Pythoff implementations can have built-in libraries, and you can also hack libraries in.
Unlike Python however, Pythoff's error checking is nearly nonexistent, with errors directly put in the output, and the program goes on its merry way.
This wont make a diffrence in, say, this program:
Code:

hsuidghu9rsghduihsiugh
print("Hello, World!")

Output:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'hsuidghu9rsghduihsiugh' is not defined
Hello, World!

BUT, in this program:, it does make a diffrence.
Code: (from here)

a = 33gsdfdhfdfdshdhf
b = 200
if b > a:
  print("b is greater than a")

Output:

File "<string>", line 1
    a = 33gsdfdhfdfdshdhf
          ^
SyntaxError: invalid syntax

As you can see, the var A is now not an int, but it is also not a str either, so its sort of inbetween, but it also breaks the if. So yeah.

Purpose

Pythoff was made for game devs and beginners, because now the program dosent stop when theres an error, and you can get feedback from the whole program at once, only stopping at the end of the code.
But some code will be broken/skipped because of the "dosent stop when theres an error" thing.