grain-lang / grain

The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾
https://grain-lang.org/
GNU Lesser General Public License v3.0
3.24k stars 114 forks source link

Reorganize utility functions in the stdlib #716

Open peblair opened 3 years ago

peblair commented 3 years ago

Currently, the standard library has a nontrivial amount of repeated code in order to avoid nasty dependency trees. We should reorganize these utilities into shared utility modules.

cc @ospencer for additional discussion/opinions

phated commented 3 years ago

My current thoughts on this are that anything we want to share should go into the runtime (which is going to get refactored out of the stdlib, and you won't be able to hot-swap it).