Hopscript: Hopscotch Text Language (Concept)

This is Python right? So it’s not type safe?

You try could making a ā€œstageā€ a dummy class at first with empty values so it doesn’t crash upon reference

Then you can reassign stage when the object is properly initialized

4 Likes

I am using a different class that resolves to the correct data once the objects are loaded. It’s mostly working now

Edit: YES THIS IS WORKING

6 Likes

I’m a bit concerned about code readability here, with multiple available syntax options… I don’t think including two ways to write the same and/or operator is a very elegant solution, especially for readability’s sake.

Does ELSE() or AND() really need capitalization? I feel like it looks off when you compare it with the initial if statement’s lowercase.

I’m super excited to see it working :D

4 Likes

If I do allow both, I would most likely warn the user if the code uses both instead of sticking to one.

Only because they are keywords in python, so yes they do unfortunately. It’s only those logical statements though thankfully

:tada:

4 Likes

Bump…

2 Likes