Skip to content

Commit

Permalink
Remove exception from rule about colon operator (:)
Browse files Browse the repository at this point in the history
This isn't needed because typecasting has a lot less overhead than we thought.
  • Loading branch information
MrStonedOne authored and optimumtact committed Jun 7, 2016
1 parent a692493 commit 51c317e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ The previous code made compliant:
```

###No overriding type safety checks.
The use of the : operator to override type safety checks is strongly discouraged. You must cast the variable to the proper type.

Exceptions are only made when used in loops that require the performance boost from being called ***extremely*** often. (Rule of thumb: If you aren't messing with the master controller or it's subsystems, this exception probably doesn't apply)
The use of the : operator to override type safety checks is not allowed. You must cast the variable to the proper type.

###Type paths must began with a /
eg: `/datum/thing` not `datum/thing`
Expand Down

0 comments on commit 51c317e

Please sign in to comment.