Enforced immutability: Difference between revisions
Content added Content deleted
Line 452: | Line 452: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
{{works with|Julia|0.6}} |
|||
⚫ | |||
const x = pi |
|||
⚫ | |||
x = e |
|||
x = π # ERROR: invalid ridefinition of constant x</lang> |
|||
</lang> |
|||
Produces: ERROR: LoadError: invalid redefinition of constant x |
|||
=={{header|Kotlin}}== |
=={{header|Kotlin}}== |