-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix #116] Add types for some functions in process.c #117
Conversation
90ce251
to
73b2094
Compare
Thanks for this! But let's wait until #74 is solved so we don't have to re-do this again. I'm not sure if we can get a feasible automatic script going faster than doing the convertion manually. I want to finish the proposal over the weekend and do the transition. |
Matus Goljer <notifications@github.com> writes:
Thanks for this! But let's wait until #74 is solved so we don't have
to re-do this again. I'm not sure if we can get a feasible automatic
script going faster than doing the convertion manually.
you already have a parser for the old syntax. What you need for the
conversion script is a pretty-printer but you might have that already to
display error messages.
…--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
|
Actually you're right. I can modify the pretty-printer and then write some crazy regexp/reader while loop that would go over the source code. I think I could do that in under an hour. |
Can you copy the This is so we don't miss anything. Then I think we can go ahead and merge as per the discussion above. |
998d8d7
to
33b6624
Compare
done. Is it possible to define a type (put 'get-process 'elsa-type (elsa-make-type String -> Mixed)) because |
There's an issue for that #31 I should really copy all the types there so we can track the progress easier, currently I only link to the categories. To add a new primitive types this should be all that's required: (defclass elsa-type-buffer (elsa-type) ())
(cl-defmethod elsa-type-describe ((this elsa-type-buffer))
"Buffer") That is, the class to represent the type and the describe method (pretty printer). The type constructor is then the suffix after Go ahead and add it to this PR, so long as it is a separate commit I have no problem with that. |
I added all types in #118. |
ffe5c9c
to
198d3c0
Compare
I updated the PR with the new
|
198d3c0
to
512ee6a
Compare
If we don't know the return type use About the Right now optional arguments are the same as nullable but it's not really the same thing. Declare it nullable and add a TODO that we need to fix it later. For the last two, we don't have support for plists so go with lists of mixed for now. I'll link this to the typespec issue since these are valid issues to be addressed. |
512ee6a
to
dc29e00
Compare
I did my best to cover all functions (except |
@DamienCassou Sweet, one less to go. I'll review it but I don't expect much issues. |
I've rebased and merged the commits into master. |
No description provided.