samp-stdlib icon indicating copy to clipboard operation
samp-stdlib copied to clipboard

Type safety

Open Y-Less opened this issue 6 years ago • 3 comments

I think we need WAY more tags everywhere. Not for master, but definately as an option. Like Pickup:, Object:, Vehicle: etc. Even tags for things that are often confused, like ColourRGBA: vs. ColourARGB: etc.

Y-Less avatar Oct 24 '18 15:10 Y-Less

Totally agree. Maybe it could be in master but behind some preprocessor flags, thoughts?

Southclaws avatar Oct 24 '18 16:10 Southclaws

How would you deal with multiple scripts/libraries referencing the standard library with different settings? If the main script turned this on, would all libraries still be able to use the functions without warnings?

IS4Code avatar Oct 24 '18 17:10 IS4Code

I'm not sure, the streamer has the same issue. I'm all for tags and quite a few people are, but it would require some kind of general consensus.

Maybe this can be resolved with a warning push/pop method?

Southclaws avatar Oct 25 '18 09:10 Southclaws