ETHproductions / japt

Japt 1.4.5, the other JavaScript golfing language
http://ethproductions.github.io/japt
74 stars 10 forks source link

Auto-shorten code #40

Open ArthaTi opened 6 years ago

ArthaTi commented 6 years ago

I suggest, that there should be somewhere a button, which would automatically convert long sentences to Unicode shortcuts. It would help golfing faster and also prevent missing some opportunities to shorten the byte count.

ETHproductions commented 6 years ago

Thanks for the suggestion! An auto-golf button has been brought up before, and I would like to add it; however, as soon as I have time, I'm going to create a completely new interpreter, so I'll add the button then with all the other new features.

BTW, we have a list of ideas for the new interpreter here, if you'd like to take a look or add some of your own suggestions.

ArthaTi commented 6 years ago

Good to know! The ideas for the new interpreter sound really nice. But I think you actually mean "interface", because that's 2 different things. Unless you want to rewrite the whole language...

I thought about adding some kind of shortcut for space, because that character actually takes a lot of space in most of my code, but for now I've got no idea how would that look like...

Well... I'll try thinking about some new functions for Japt in free time.

ETHproductions commented 6 years ago

Thanks, interface is indeed a better term for it. I do also happen to be creating a new interpreter for Japt v2.0 :-)

PeterShaggyNoble commented 6 years ago

Personally speaking, I wouldn't be a fan of an "auto-golf" feature; it'd take some of the fun out of the game for me.

ArthaTi commented 6 years ago

@PeterShaggyNoble as said, it would be a button, so you would still have the fun to replace stuff.

ETHproductions commented 6 years ago

@PeterShaggyNoble I was just thinking of something that adds in shortcuts wherever possible. Anything beyond that would be very tough to do automatically...

PeterShaggyNoble commented 5 years ago

Much as I personally don't like it, this feature is available in the new interpreter currently in development.