Changes

Jump to navigation Jump to search
12 bytes added ,  18:00, 2 February 2020
Line 6: Line 6:  
* You cannot define namespaces, classes or functions
 
* You cannot define namespaces, classes or functions
 
* Number operations in SIPL convert all numbers to doubles behind the scenes
 
* Number operations in SIPL convert all numbers to doubles behind the scenes
* You can use the var keyword to declare temporary variables, but you cannot specify their type
+
* You can use the '''var''' keyword to declare temporary variables, but you cannot specify their type
 
* You cannot use bitwise operations. The ^ symbol raises a number to a power
 
* You cannot use bitwise operations. The ^ symbol raises a number to a power
 
* You cannot increment or use operations together with assignment, i.e. += or ++. You must write <code>i = i + 1</code>
 
* You cannot increment or use operations together with assignment, i.e. += or ++. You must write <code>i = i + 1</code>
* SIPL does not support the new keyword, but you can create arrays by writing <code>~[1, 2, 3]</code>
+
* SIPL does not support the '''new''' keyword, but you can create arrays by writing <code>~[1, 2, 3]</code>
 
* For loops are not supported, however you can write <code>'''foreach''' (element '''in''' list)</code>
 
* For loops are not supported, however you can write <code>'''foreach''' (element '''in''' list)</code>
 
* Comparisons can be chained, e.g. <code>'''if''' (10 < x < 20)</code>
 
* Comparisons can be chained, e.g. <code>'''if''' (10 < x < 20)</code>

Navigation menu