feat: self updating nature binary command#232
Conversation
|
This is a nice feature. As a side note, I've recently been working on a larger refactoring of the nature programming language. There are some breaking updates, but I think they make nature better to use and ready for the new fx model. |
|
@weiwenhao does this have an effect on the NLS and/or syntax? Because I was thinking of doing the following:
|
|
NLS has been updated synchronously, and related refactorings have been merged into master. You may be able to compile and build related libraries based on master.
|
|
I have a few comments and a suggestion:
My only case for testing is to separate it from the actual code when building api's for example, but I do support your point of declaring it directly in the same file and the flexibility to do otherwise. Then I have another case for the syntax and that is that I am very much for a I like this language very much, mostly because of it's typed flexibility. With that I mean, we get a strong typed syntax but with semi-flexibility that GoLang does not have (for example the error handling). The flexibility is something that is very important when building large-scale api's and especially when building tools and frameworks (I wish to build one in Nature). I hope you share the same opinion. |
where is a temporary constraint restriction, because I'm considering whether I need to use the where syntax constraint in formal function declarations (c#/kotlin/swift/rust all do), and I think it's more readable to put where on top of fn declarations without bloating the function declarations.
|
|
@weiwenhao I understand the reason for adding where but I have to argue that it only adds unnecessary complexity when the syntax can be clean. It also adds more tokens then is needed: I think the readability issue stems from I do agree that if someone wants a very complex generic, maybe we should support a For the case of |
Not sure if this is something you want to have added but I thought it be a nice addition. I always find myself struggling to manage binary releases.