(no title)
burky | 2 years ago
I'm still going through the guide but one thing I find curious is the module naming when building your application. It seems like you clone a library to disk and then "import" it as a command line argument with the name you choose. I'm trying to wrap my head around how dependencies would work if you have the following situation:
- parse library
- http library (requires parse) -> import parse=~/parse/src
- my_app (requires parse and http) -> import http=~/http/src parse_with_different_name=~/parse/src
Note how my_app uses a different name for the parse library than http.If the http library uses "parse" in the source code when referencing the module (import parse) and my application uses "parse_with_different_name" when referencing the module (import parse_with_different_name), does that mean to compile my app I would have the following...
valec build mymodule=~/my_app.vale parse=~/parse/src http=~/http/src parse_with_different_name=~/parse/src
Maybe I'm missing something and maybe it's too early to worry about things like this. Regardless I am loving this language and very excited about it.Edit: trying to fix my example list
No comments yet.