garrynewman/garrysmod — pull request #826 by wiox (2014-10-02 20:01:50+00:00)
Title: Deprecation

__Not being merged until after next update, if at all.__

I'd like to consider this a step in the right direction for cleaning up a lot of inconsistencies in Garry's Mod's function / method naming. Calls to deprecated functions will cause a non-aborting error message once per location.

There are still a few things to be done to the DEPRECATE function itself.
If you have any suggestions for this / functions that should be deprecated, post them. If you have any arguments against this / functions this deprecates, post them.

Most of the deprecated functions are from http://wiki.garrysmod.com/page/Category:Deprecated_Functions
Two exceptions for this are math.Min and math.Max, which aren't on the wiki at all.

```
> print(math.Distance(1, 2, 3, 4))
2.8284271247462

> print(math.Dist(1, 2, 3, 4))
[ERROR] lua_run:1: calling deprecated function 'math.Dist' (use 'math.Distance')
2.8284271247462
```

I consider this a good idea because, if functions are to be removed in the future, why not convince developers to stop using them in the present?

View the beef at https://github.com/wiox/garrysmod/blob/deprecate/garrysmod/lua/includes/deprecation.lua

__Opinions very much needed__