-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial Path integration #562
base: master
Are you sure you want to change the base?
Conversation
Crazy idea: what if we want RAAI-style with a
The
|
The closeable definition is neat; I would probably want it to return the value of the last expression in the body, personally. |
RAII isn't that crazy and I intended to have a more general form. I still forget sometimes that Rhombus macros can see subsequent forms in the same context. I'll take a look at implementing this. I'm thinking that next we may want to define a I agree with Ben that it might be better to return the last value instead of |
Yes, it should definitely return the value. I needed Another issue with this macro implementation is that static info from Note that as written, I agree about having a |
I've been writing some path-related code recently, so this is helpful. How much of the |
Some initial Path integration that I've been poking at for a couple of weeks now.
Initially, I used a veneer for
Path.read_with
andPath.write_with
that were syntax and would take a block that would become the read (write) procedure. Once I started thinking about adding the other flags for reading and writing the syntax seemed too messy so I went back to a simple wrapper aroundcall-with-input-file
/call-with-output-file
.