Jonathan Lindegaard Starup

Results 363 comments of Jonathan Lindegaard Starup

> Proposed Principle: A package can be declared as "safe" I think this immediately asks the question, what if a subset of the API is safe? > Proposed Principle: Packages...

> What about Flix doc for that package? Ah I see, I missed that command. But still this is a json, this doesn't nicely help me as a user to...

> ... but 2.0.0 isn't backward compatible with 1.0.0. Maybe its a stupid question and a bit unrelated, but I was a bit confused with the version numbers here, are...

I wouldn't think they were checked, but I just thought that the manager would use the version numbers to decide compatibility, e.g. ` but 2.0.0 isn't backward compatible with 1.0.0.`...

* The rename syntax for use is `use List.{toArray => listToArray}` so we should probably also use `=>` here. * I like this syntax `new ClassOrInterface {...}`

> For example, > > ```scala > def main(): Unit \ Impure = { > import new java.util.ArrayList(): ##java.util.ArrayList as newList; > import java.util.ArrayList.containsAll(##java.util.Collection): Bool; > let _ = newList();...

Here's some different versions, TLDR: 1) there is also a fast functional solution 2) inner def is faster than foreach call ``` pub def flatMap(f: a -> List[b] & ef,...

flatmap3 is asymptotically faster than flatMap, flatMap3 is O(n) while flatMap is O(n^2). The key is that `l1 ::: l2` has complexity O(length(l1)) so it the original it keeps going...

I think this will be good for new devs, but there are downsides. 1) comments become outdated and require upkeep (would every new error in redundancy require doc changes?) 2)...

Maybe you could also auto complete on `match Type`, this would become `match ??? { case A => ??? case B => ??? }`