J-- Logo

Description of the J--

J-- (J Dash Dash) is an interpreted, non-object-oriented programming language inspired by the C++ language and the very famous Java.

Java is one of the most used languages in the world of developers, however it is the source of many problems.

Features and Goals for J--

J-- aims to offer a mix between C++ and Java to allow you to have the problems of Java and the advantages of C++ in addition, it starts from Java to look like a special C++.

  • Fast, smooth, clearest, light
  • New way to print in output (2 ways)
  • auto like in C++
  • New way to import file (to import functions, global variables etc.)
  • New way to use namespaces/packages
  • New functions and variables states protected, private and public
  • Module implemented by default in the language you can use with the line import MODULE_NAME; like String, Boolean, Integer or Double for example
  • std added to files when you download it
  • Example with J--

                
    print("Hello World V1 \n"); println("Hi");
                
    import String; import Boolean; string msg = "hi"; println(msg.getIndexFromChar("h")); int a = msg.getIndexFromChar("h"); println(a); boolean f = Boolean.fromInt(0); boolean v = Boolean.fromInt(1); println(f ", " v); // println(f ", " v); == println(f + ", " + v);
                
    // main.jdd import "import.jdd" as "main.jdd"; println(a); mainFunc; // import.jdd protected int a ["main.jdd"] = 10; public void mainFunc() { println("hello everyone!"); }