DEV Community

[Comment from a deleted post]
 
moopet profile image
Ben Sinclair

Sure you can!

Just like you can define variables as const or change the scoping rules with a new function definition (=>), you can add something to declare a variable as static typed, or immutable, or whatever you can imagine. That can be bolted on to a language easily enough, then you tell everyone it's "best practice" and leave to simmer for a couple of years.