rzimmerman / kal

A powerful, easy-to-use, and easy-to-read programming language for the future.
http://rzimmerman.github.io/kal
MIT License
394 stars 18 forks source link

Add 'use strict'; pragma to IIFE #128

Open cmwelsh opened 10 years ago

cmwelsh commented 10 years ago

If the user wraps their file in an IIFE (i.e. no --bare option provided), the compiler should add the use strict; statement at the top of the file.

rzimmerman commented 9 years ago

I think this is a good idea, but I'd like to make sure it doesn't break anything. I'm mostly worried about the changes to arguments that comes with use strict; (tasks use arguments to check for errors and find callbacks). I'm pretty sure there's no issue and unit tests ought to catch anything.