Closed alehatsman closed 6 years ago
Ohh i was using 0.13.5, i think we should update project template. I have just realized that that namespace is not public anymore. :/
Hi, thanks for the feedback!
As you noticed, I was quite radical in moving utility functions out of the public namespace. I felt that the public API was cluttered with functions that weren't specific to LambdaCDs purpose but rather implementation details. By keeping them out of the public API, I was more flexible to change them when necessary without worrying about compatibility.
For the temp-dir functionality I'd be open for a discussion about moving them back into the public namespace. I still feel like LambdaCD is not the ideal place for such functionality. I would have hoped that other libraries (e.g. Raynes/fs) would provide something like this but didn't find anything. On the other hand, I see that lots of LambdaCD libraries and users use these shorthands quite heavily so having it in here might make sense.
What do you think (others watching this thread, please chime in as well)?
Hello, thank you for the response!
Actually, I agree with you on point about the fact that that namespace and functionality should not be a part of lambdacd.
The only thing is that when you create project or dive in the documentation, you see code snippets with the usage of temp
namespace. Because you need to set up home dir.
We can think about moving that code to project like lambda-fs. But only if there will be more of related functionality in future.
So basically I am not sure what is the right way here. Need to think later.
Hmm, I think for a new separate project there's not enough functionality...
Regarding the home-dir specifically, I expected most "real" deployments to use a permanant directory so that the history is kept across restarts. The temp
was there mostly for convenience to have a placeholder that works out of the box.
Yes, I agree that there's not enough functionality. Then I think that it is a good decision to move it to the internal namespace. Because actually, it's just a few functions. Users can just copy it, I think it's not a big problem.
But anyway, let's apply my changes to it. It works absolutely in the same way, but you can put many forms to it.
closed via #183
Hello,
I just started my usage of lambdacd and noticed that macro you have in util namespace is limited.
What i want to suggest is to make it work with multiple forms, not just one.
So that i can use it like here:
Do i miss something? Should i prepare pr?
Best regards, Aleh