DATA(var) Vs FINAL(var)

The new syntax- FINAL( ) is now supported like how the variables are declared using DATA( ) .

This FINAL( ) disables subsequent change of the value after the initial binding.

Example- leads to syntax error, when FINAL variable is changed after initialization.

The working syntax-

Output-

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s