Documentations - SRON
  • SRON's Official Documentation
  • Installation
  • Syntax of SRON
  • Executing a SRON code
  • Keywords in SRON
  • Comments in SRON
  • Datatypes in SRON
  • Variables in SRON
  • Memory Ownership Model
  • Operators in SRON
  • Math block
  • if elif else in SRON
  • Loops in SRON
    • For Loop
    • While Loop
    • Foreach Loop
  • Break & Continue
  • Functions in SRON
    • Print functions
    • User Input Functions
    • Type Conversion functions
    • Type Checking functions
    • Math functions
    • Char Functions
    • String Functions
    • List Functions
    • Miscellaneous functions
  • Return in SRON
  • Command Line Arguments
  • Free
  • Rotate
  • Console
  • Sample codes
  • Coding Convention
  • Frequently Asked Questions
  • Credits
  • Contact
  • Donate
Powered by GitBook
On this page

Coding Convention

Every programming language has a different convention(or style) and guidelines to write code These conventions cover various aspects of code formatting, naming conventions, indentation, commenting practices, and more. They aim to ensure consistency and readability across codebases, making it easier for developers to understand and maintain the code.

In SRON, the coding convention typically includes the following guidelines:

1. Datatypes: They should be written in Upper Camel Case which means starting with a capital letter and using capital letters for the beginning of each word in the name, e.g., String, Int, Double, Char, Bool and List.

2. Indentation: It is typically done using spaces (usually four spaces per indentation level).

3. Variables: It should be written in lower case starting with alphabets.

4. Arguments: They should start with two underscores, followed by alphabets in lower case.

5. Method names: They should be written in either PascalCase or in camelCase but do not mix them up with other typos.



{
   name : Main
   args : (List __arglist)

   Int x, List lst = []

   println(__arglist, x, lst)

}
PreviousSample codesNextFrequently Asked Questions

Last updated 6 months ago