Skip to content

Frequently Asked Questions

ShadowLugia650 edited this page Jan 9, 2022 · 7 revisions

Why write OLP?

For fun. Or because you hate yourself. Or maybe a little bit of both. :)

How do I get started with writing OLP?

Check out this page!

How did you come up with OLP?

I took a 200s (Freshman) level python course and I was bored out of my mind so I did every project on one line :)

Can't you just use exec and eval with ';' or '\n'?

Yes, but that's boring, and if you're just going to do that, there's no point doing it in one line. This is also one of the reasons I did this in python and not C or Java.

Is OLP viable for anything other than fun?

No, not really. It's slower, less efficient, and less reliable than standard python due to the use of global variables and some of the primitives, and python is already a slow language. The lack of readability and difficulty of debugging don't help either.

My Error Codes are impossible to debug!

Unfortunately, that's how it's going to be. Check out this for a few tips that may be helpful.