#solomon4104 I was about to reply to your
1 messages · Page 1 of 1 (latest)
🧵
I understood that DirectoryWithNewFile could be replaced by directory.WithNewFile to avoid conflict with eg. FooWithNewFile, but is there actually a FooWithNewFile ?
Oh, I meant this:
From:
dir.WithNewFile("/foo", dagger.WithDirectoryWithNewFileContents("blah"))
To:
dir.WithNewFile("/foo", directory.WithNewFileContents("blah"))
the diff is it s/Directory// in the function name (Directory is now in the package name)
Tried a few hairy go generics options with @fresh garnet
His statement sums up the situation really well:
"We can now have disjunction errors in Go directly. No need for CUE anymore"