I did some popularity polling on the explicit istype() checks on the /tg/station codebase and /list is pretty high up there.
If it's simple to do, would it be possible to implement a fast ismob/isturf -type helper for lists?
This is a very low-priority thing as it's very much a micro-optimization, but would be appreciated nonetheless.
ID:2371331
![]() May 25 2018, 6:41 am (Edited on May 25 2018, 6:47 am)
|
|||||||
Resolved
| |||||||
This. islist() has been a staple macro for me since forever, and it'd be nice to give it a typeid and actual function for the task.
|
It's quite doable (and overdue) to add islist(), although for a new language feature of this nature I think it has to be a 513 thing.
|
A typeid based checker for lists would speed up some logic.