Code improvement - 1


Aside from a few tests of Electronic Poetry those last few days have mostly been devoted to code improvement.

Before we had to write something like 

#Start
    #Test:Hello:world
#Test:param1:param2
    @param1 @param2 !

To get the result :

Hello world !

I love that writing, but it quickly gets very complicated and unreadable.

Now, we write it in a more conventional way :

#Start
    #Test( Hello, world)
#Test( param1, param2 )
    @param1 @param2 !

That part works. But now, I must implement that new notation everywhere, and make full use of it. Such as nested commands :

#Start
    #Test ( Hello, #GetWorldType)
#GetWorldType
    planet
    world
    universe
#Test( param1, param2)
    @param1 @param2 !

Which could return those different lines (at random)

Hello planet !
Hello world !
Hello universe !

Leave a comment

Log in with itch.io to leave a comment.