-
Notifications
You must be signed in to change notification settings - Fork 4
update type of install
arg
#62
Comments
@agarwal you mean making |
No, I'm wrong
Also, the example in the |
No, the default would be semantically the same as it is now. The proposed change would be Project.lib : ?install:[`Findlib of string] -> ... instead of the current
Thanks for point this out. Forgot to update README. Maybe I'll hold off since the argument is again being changed. |
The current is already optional? Project.lib : ?install:[`No | `Findlib of string] -> https://github.com/solvuu/solvuu-build/blob/master/lib/project.mli#L210 You mean then replacing |
Sorry, I'm being sloppy. Right, it is already optional. Updated my previous comment. The default would still be |
Is it even possible for a function to behave differently if you don't pass an optional argument vs passing Anyway, I think the current implementation is fine, but I'd slightly prefer not installing by default (that would be the intuitive behaviour, in my mind). |
Indeed, so it would have to be:
This option doesn't cause anything to get installed, only enables installing. Most libraries are meant to be installed. |
I'd rather leave it flat as is than create a mess with |
Seems the double options are causing more confusion than helping. I've updated this issue to also reconsider other args as pointed out here. |
Provide more FLG directives. Don’t sort the whole list of lines at the end to keep the directives more in the order we want.
Currently,
Project.lib
takesinstall : [`No | `Findlib of string]
, andProject.app
takesinstall : [`No | `Opam]
. The`No
now seems unnecessary; could instead make this an optional arg. Consider doing this for next release.Also consider arg types of
merlin_file
as pointed out in this comment.Remember to update README.
The text was updated successfully, but these errors were encountered: