Migrate most builtin functions to space script

Space script is a pretty huge success. So it’s not going anywhere. Before it existed I had implemented a bunch of functions into the core:

Today, most if not all of these can be implemented with space script.

So I’m thinking of doing just that: to reimplement them in space script and make them part of the Library/Core library. I’ll do this in a granular way (one meta page per function) so that you can exclude specific ones and replace them with your own implementation. That way you could change the format of today() for instance.

Thoughts?

How would this change affect people who disable Space Script?

1 Like

That’s a very good point. It would practically break everything (a lot of queries and templates rely on this) :laughing:

I didn’t consider this. So yeah effectively we don’t do this or remove the option to disable space script.

1 Like

I guess that as long as there are potential security concerns when using space scripts, you should not migrate to it and deprecate the original implementation.

I’m not sure the security concerns will ever get better. So let me think about this a bit.