greenfork / nimraylib_now

The Ultimate Raylib gaming library wrapper for Nim
MIT License
149 stars 16 forks source link

not prefixing rlgl functions with rl is a really bad idea #11

Closed Tuatarian closed 3 years ago

Tuatarian commented 3 years ago

rlEnd() (a very very vital function) simply doesn't exist because end is a keyword in nim. Please return back to using the rl prefix

greenfork commented 3 years ago

You can use functions (and everything else) which are reserved words like this:

`end`()

But I recommend using namespaces to deal with rlgl module specifically. You can read more about it here https://github.com/greenfork/nimraylib_now#require-fully-qualified-procs

Tuatarian commented 3 years ago

using from rl import nil is probably a good idea, very good point

greenfork commented 3 years ago

General idea is that you can use it without namespace but you are in control of how you want to do it