CACI-International / ergo

The ergo language and runtime.
MIT License
2 stars 2 forks source link

Make builtins more discoverable #4

Closed calebzulawski closed 1 year ago

calebzulawski commented 1 year ago

I think an easy way to do this would be to make a default module that contains all of the builtins. We could name it something like builtin, and have it as a builtin itself. Alternatively, it doesn't need to be named at all, and can just be used for building documentation.

afranchuk commented 1 year ago

Yes! I had considered doing this in the past. Another possible name is prelude, as that is used in some other languages (but builtin is more obvious). As part of the GC additions I may be reworking how the builtins interact with module loading (as part of adding the GC tracing), so I'll keep this in mind.