Top "Strict" questions

Mode used in languages such as Javascript and Perl to be able to code with a restricted version of those languages.

How do I break out of a loop in Perl?

I'm trying to use a break statement in a for loop, but since I'm also using strict subs in my …

perl loops break strict
PHP 5 disable strict standards error

I need to setup my PHP script at the top to disable error reporting for strict standards. Can anybody help ?

php strict
Error message "Strict standards: Only variables should be passed by reference"

$el = array_shift($instance->find(..)) The above code somehow reports the strict standards warning, but this will not: function …

php reference strict
Not recommended to use "use strict" in ES6?

I'm not familiar with ECMAScript 6 yet. I've just cloned the React Starter Kit repo, which uses ES6 for application code. …

javascript ecmascript-6 strict es6-modules
Why is JSHINT complaining that this is a strict violation?

I think this may be a duplicate of Strict Violation using this keyword and revealing module pattern I have this …

javascript jslint strict jshint
Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function

Hello when I run this project in Developer mode (grunt server) https://github.com/kennethlynne/generator-angular-xl everything is ok but …

javascript angularjs strict
'caller' and 'arguments' are restricted function properties and cannot be accessed in this context

I am trying to create a simple debugging function that simply shows the caller of a function, like this: function …

javascript ecmascript-6 strict
Strict Violation using this keyword and revealing module pattern

Having trouble getting the following to pass jslint/jshint /*jshint strict: true */ var myModule = (function() { "use strict"; var privVar = true, …

javascript strict module-pattern
How to use mixed parameter type in my own functions?

I want to define a PHP 7 function that takes a parameter of mixed type. (What I want is the equivalent …

php types parameters strict mixed
Does python have a "use strict;" and "use warnings;" like in perl?

I am learning perl and python... at the same time, not my by design but it has to be done. …

python perl warnings strict