Discussion New Language - Discussion

Officially working on this now. Currently typing up the definition (basically, what the language has and how it works.) at the moment.

Questions though.
Public or pub keyword?
Private or priv keyword?
Anyone care if I eliminate scopes, and make it 100% library-based?
Does anyone have a better name for libraries!?
Start/end blocks, or { } blocks?
C-Like function declarations (return-type name(arguments...)), or normal JASS-Type declarations (I can do any other kind if anyone wants. As long as people agree on it. I just think that C-Like functions are cool, but that's my personal opinion)?
 
public or [del]pub[/del] keyword?
private or [del]priv[/del] keyword?

Anyone care if I eliminate scopes, and make it 100% library-based?

Please do that. Scopes are lame.

Does anyone have a better name for libraries!?

I prefer the term 'library'. 'package' if you must change it.

Start/end blocks, or { } blocks?

I like both for different reasons.

C-Like function declarations (return-type name(arguments...)), or normal JASS-Type declarations (I can do any other kind if anyone wants. As long as people agree on it. I just think that C-Like functions are cool, but that's my personal opinion)?

I like C-like declarations, but I find the 'void' keyword to be lame.
 
> class

I'm planning on a class-type already.

> void' keyword to be lame.

I was going to use null.
 
null or void is the same.

If you put none, it looks like the class' initialization. (fail :D)

Rather keep void or null or function.

----

Trufax, but it would be confusing if | had both functions.

Yea* my bad
(the * points my idiocy located into my retarded memory. :O)

----

Maybe an easy way to debug the codes such as:
debug << "C style"; (debugging only)
becomes call BJDebugMsg("Jass style");
 
Maybe an easy way to debug the codes such as:
debug << "C style"; (debugging only)
becomes call BJDebugMsg("Jass style");

The << operators are ugly, if anything you should just use something like:

print "message"

or

print("message")
 
The << operators are ugly, if anything you should just use something like:

print "message"

or

print("message")

I second this.

> What is wrong with scopes?

Scopes are non-standard. Libraries, Structs, and Classes are more standard.
 
use namespace instead of library : \

use class keyword when dealing with vars+methods
struct keyword for vars only

Really, it should all be struct though, unless you plan on using a hashtable implementation for classes, which I seriously don't suggest ^_^.

>print("message")
No, use printf...


Furthermore, allow access to the lexical environment

Provide common things like collections and heaps
 
You know, the more features I implement, the longer it takes to create.
It'll be awhile before I get everything working correctly.

> use namespace instead of library : \

I think I like namespace.

> allow access to the lexical environment

Explain?
 
> If there are any {} in this language, I assure you I would rather code with vanilla JASS.

Why?

> Actually, you should just do the compiler. I'd like, if you want, to do an IDE for your compiler.

I'm not quite sure I understand what you mean...
 
If there are any {} in this language, I assure you I would rather code with vanilla JASS.

I may have agreed with you on this point in the past, but I think that since these sorts of blocks are so widely used in actual coding languages, it might be better to use them, in order to make veteran coders (who are new to JASS) able to adapt quickly, as well as make veteran JASSers (people who become familiar with this language) able to switch to other languages.

use namespace instead of library : \

namespace is uglier than library and package.

>print("message")
No, use printf...

...No. Use print. Why add an extra random letter on it?

Actually, you should just do the compiler. I'd like, if you want, to do an IDE for your compiler.

I would also like it if the compiler was independent of the IDE.
 
Well, here's a simple comparison.

IDE what you developp in. -- Trigger Editor
Compiler what turns your code into readable Jass.(what ever language is used) -- Jasshelper

Like... Let's say C++ (but that must be do-able in python too)

Code:
int main(int argc, char *argv[])
{
    // argv[0] could be the in file
    // argv[1] could be the out file
}

In my IDE that I would do in Java, I'd call your Compiler


Code:
String[] cmd = new String[3];
cmd[0] = "compiler.exe"; // program
cmd[1] = "in.j"; // input file
cmd[2] = "out.j"; // output file
Runtime.getRuntime().exec(cmd); // execute compiler
// Then done.
 
>...No. Use print. Why add an extra random letter on it?

print format...

>namespace is uglier than library and package.

Not at all.. namespace is a standard used by many languages...

>lexical environment
After processing static text into the lexical crap (lines, structures, etc), let scripting languages access that huge structure for manipulation, like changing what lines are, adding new lines, copying structures, etc.

>Why?
Lye lye, keep it close to JASS... follow JASS syntax like vjass does. You could do a C Style syntax and what not, but keep it in its own block. Only things that should compile plainly are things in JASS style syntax.

So as not to *100% break* older resources, follow current vjass conventions for the current features. You could add on and what not, but the current features should stay supported.

If you were doing 100% entirely dif, then put it in its own language block and go all out.

My suggestion: get vexorian to put the compiler he's working on out so you can fix up vjass and write your own language or w/e (with custom syntax) with its own language block need be.

http://www.wc3c.net/showpost.php?p=1120197&postcount=1775

Please do the right thing ><.
 
> My suggestion: get vexorian to put the compiler he's working on out so you can fix up vjass and write your own language or w/e (with custom syntax) with its own language block need be.

Do you mean fix JassHelper, or get him to release the new one he's working on, and add it to that? o_O
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Thursday!
    +1
  • The Helper The Helper:
    Added new Crab Bisque Soup recipe - which is badass by the way - Crab Bisque - https://www.thehelper.net/threads/soup-crab-bisque.196085/
  • The Helper The Helper:
    I feel like we need to all meet up somewhere sometime. Maybe like in Vegas :)
    +2
  • The Helper The Helper:
    Would love to go to Vegas I have never been and it would be an adventure! Who is in?
  • The Helper The Helper:
    at least the full on bot attack has stopped it was getting ridiculous there for a while and we use cloudflare and everything
  • jonas jonas:
    I'm sure my wife would not be happy if I went to Vegas, but don't let that stop you guys - would be hard for me to attend anyways
    +1
  • jonas jonas:
    Do you know why the bot attack stopped?
  • The Helper The Helper:
    maybe they finally got everything lol
  • Ghan Ghan:
    There's lots of good food in Vegas.
  • Ghan Ghan:
    Everything tends to be pretty expensive though so bring your wallet.
    +1
  • The Helper The Helper:
    I have to wait longer if I am going for food because my teeth are still messed up from the work and I still cannot eat right. Going to be a couple more months before that gets better
    +1
  • The Helper The Helper:
    I would immediately hitting the dispensary though :)
    +1
  • Varine Varine:
    My Xbox account got hijacked, and apparently I have a different one from like 10 years ago that Microsoft keeps telling me is the right one
  • Varine Varine:
    Like NO, I mean for some reason that one is attached to my email, but it's not the right one
  • Varine Varine:
    I have a different one, and that one has my credit card attached to it and I would like that credit card to not be attached to it if I can't get it back
  • Varine Varine:
    Anyway Microsoft is not very helpful with this, they just keep telling me to fill out the Account Recovery form, but that just redirects me to the other account
  • The Helper The Helper:
    They should not allow you to put a credit card on a account that does not have human customer service you can call
  • Varine Varine:
    That's the only thing that got hijacked at least. I don't totally know how these integrate together, but it seems like I should be able to do this via the gamertag. Like my email is still mine, but they changed the email to that account I'm guessing.
    +1
  • Blackveiled Blackveiled:
    I went to Vegas a few weeks ago to visit my mom. I had never been either, lol! But I'm working in Salt Lake City at the moment so it's not a far trip.
    +2
  • The Helper The Helper:
    I have never been to Vegas and it is on the bucket list so...
    +1
  • tom_mai78101 tom_mai78101:
    Recently getting addicted to Shapez.
    +1
  • Ghan Ghan:
    I've heard Shapez 2 is good.
    +1
  • Ghan Ghan:
    Also Satisfactory 1.0 released on the 10th and that has been excellent as well.
    +1
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic day!

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top