Tensegritics / Tensegritics/ClojureDart

Closures type inference is lost for f/widget

Open
#113 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Clojure
Stars
1.6k
Forks
119
PR merge metrics
No merged PRs in 30d

Description

example:

(defn webview-shortcuts-widget [.& ^m/Widget child]
  (f/widget
    :inherit [m/Shortcuts]
    (m/Shortcuts
      :child child
      :shortcuts
      (into {(m/SingleActivator services.LogicalKeyboardKey/tab) (m/DoNothingAndStopPropagationIntent)
             (m/SingleActivator services.LogicalKeyboardKey/tab :shift true) (m/DoNothingAndStopPropagationIntent)}
        (map (fn [[k v]] [k (m/DoNothingAndStopPropagationIntent)]))
        (.-shortcuts shortcuts)))))

generated code does not type

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided ClojureDart f/widget example and inspect the generated code, which the issue reports as losing type information for closures. Trace the type-inference path for f/widget and compare the generated output with the closure types expected by the Flutter/Dart widgets; done means the generated code retains the needed types.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, dart, flutter
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.