Changes

Jump to navigation Jump to search
29 bytes added ,  21:00, 7 March 2020
Line 11: Line 11:  
* 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>
* Enums should not be qualified in function parameters, e.g. you should write '''Female''' instead of '''Human.Gender.Female'''.
+
* Enums should not be qualified when assigning, comparing or in function parameters, e.g. you should write '''Female''' instead of '''Human.Gender.Female'''.
 
* Comparisons can be chained, e.g. <code>'''if''' (10 < x < 20)</code>
 
* Comparisons can be chained, e.g. <code>'''if''' (10 < x < 20)</code>
 
* Single quotation marks (') do nothing
 
* Single quotation marks (') do nothing

Navigation menu