Remove duplicated luau methods from ll table?
WolfGang Senizen
I was asked yesterday which math functions one should use
Which made me realized, that having 2 ways to perform the exact same thing is going to lead to continuing confusing on is there a difference or now.
Should duplicated functions like the math ones
-
ll
.Abs
-
ll
.ACos
-
ll
.Floor
- ...
Or vector
-
vector
.magnitude
-
vector
.normalize
- ...
Be removed from the
ll
table, they should still be available in llcompat
i think, but having them in "the main library" is more than likely confusing to less familiar users as to why they are in 2 places.Maybe they should be redirected to an error message instead? and removed from the docs?
This would need to include work adding documentation to https://create.secondlife.com for the standard libraries, but that has already been brought up as well.
Log In
nya Resident
thoughts on the list ones?
Frio Belmonte
This sounds like a good idea to me. Additionally, the math lib functions are just plain faster.
WolfGang Senizen
Frio Belmonte Yeh that was one of the main reasons I gave the person that asked me
Nexii Malthus
Yeah with
llcompat
in place we have a safe place for replicating existing algorithmic behaviour exactly just in case.*
ll.Ord
/ll.Char
are also duplicating string.byte
/string.char
and utf8.codepoint
/utf8.char
*
ll.GetUnixTime
by os.time
*
ll.StringLength
by #string
/string.len
and utf8.len
I'm sure there are some others