Chaos is a strongly typed, dynamic yet compilable, test-oriented procedural programming language that achieves zero cyclomatic complexity.
nm
would not help in this case. Since function is loaded dynamically. The issue was you removed function KaosRegister
while forking the template and forgot to add it back. I've fixed this issue and made some additions/fixes here and there with this commit chaos-lang/fs@392236c
API
. Also, it was awesome to test my C changes 😁 first C code that I've ever contributed. I'm feeling pretty darn awesome right now. Also, the C API is not hard to grok. I feel like I'm already getting a bit cozy with it. More to learn and need to practice, of course, but you've implemented a very nice API.
Also, I'm sitting on this branch: https://github.com/chaos-lang/fs/tree/rename
I don't want to merge it before I get a test in. How do we go about testing?
fs
spell seems to be a bit more of the os
/sys
Python modules. At least in intent.
fs
API currently supports: read()
, copy()
, and soon-to-be rename()
, all related to files.
Morning @mertyildiran. Question: do you prefer squash merging?
I prefer linear history with as little squash and merge commits as possible because of this email of Linus: https://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html
If something really needs a squash then at list this method should be used: https://stackoverflow.com/a/5190323/2104879
Oh! It's the 1 year birthday of Chaos, correct?
I didn't know that today is the birthday of Chaos :smile: How did you determine that? Looked at the first ever commit?
Also, I'm sitting on this branch: https://github.com/chaos-lang/fs/tree/rename
I don't want to merge it before I get a test in. How do we go about testing?
I expect to have tests for each functions in the library in https://github.com/chaos-lang/fs/blob/44329743f33953dcb51cb6a65f6b1deaad0f8f2c/test.kaos
I also just had a thought: the new
fs
spell was supposed to be for filesystems, but it so far seems to only be manipulating files. Question: should we change this to thefile
orfileutils
spell?
Python's modules related to file manipulation is a little bit messy. They've introduced more modules and kept the old modules along the way for the sake of backward compatibility. Since even the core modules requires separate installation procedure in Chaos, if we split the modules then it might become a little bit inconvenient to use them. I would go with a relatively big module that covers everything related to filesystem. fs
is a good name for such a module I think.