Skip to content
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

Handle optional arguments somehow #193

Open
2 tasks
Fuco1 opened this issue Feb 12, 2023 · 0 comments
Open
2 tasks

Handle optional arguments somehow #193

Fuco1 opened this issue Feb 12, 2023 · 0 comments

Comments

@Fuco1
Copy link
Member

Fuco1 commented Feb 12, 2023

For starters we should add a quick fix that if type is or nil... the argument could be missing and default to nil. But later we should probably introduce the &optional also to the elsa type signature.

  • add a quick hack assuming nullable always means optional (not safe?)
  • add proper handling with &optional keyword in the type signature, similar to how we handle &rest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant