Stream: beginners

Topic: Path type in different platforms


view this post on Zulip Ilia Samokhin (Oct 30 2026 at 20:44):

I was quite surprised when I discovered that both basic-cli and basic-webserver platforms each have their own Path type. There is also a standalone path package, though it has only pure methods.

Is that intentional or should both platforms depend on path package? If so, would effectful methods become free functions?

view this post on Zulip Richard Feldman (Oct 30 2026 at 21:44):

I want to move Path into builtins at some point, but it's out of scope for 0.1.0 :smile:

view this post on Zulip Ilia Samokhin (Oct 31 2026 at 06:56):

So, e.g. all the pure methods will be builtin and platforms will each have their own IO free functions?

view this post on Zulip Richard Feldman (Oct 31 2026 at 12:09):

for Path specifically, the plan is that there will be a Path in the stdlib with only pure functions, which the platforms can all use

view this post on Zulip Richard Feldman (Oct 31 2026 at 12:10):

and I/O operations will all be in platforms (the stdlib doesn't have I/O operations by design)


Last updated: Nov 04 2026 at 18:54 UTC