seaofvoices / darklua

A command line tool that transforms Lua code
https://darklua.com/
MIT License
71 stars 9 forks source link

Add rule to remove floor division operator #160

Open jeparlefrancais opened 9 months ago

jeparlefrancais commented 9 months ago

Remove usage of // in binary expressions and in //= assignments.

Example:

return 10 // divider

Converts to

return math.floor(10 / divider)