GraphiteEditor / GraphiteEditor/Graphite

Use automatic type conversion to convert from () and T into T with Merge nodes

Ouverte
#3,776 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Graphene
Langage dominant
Rust
Étoiles
27.2k
Forks
1.3k
Merge moyen
20 h 5 min
PR mergées (30 j)
57

Description

This is an idea that will require some discussion to determine the feasibility and approach before implementation may begin.

---

When a Merge node receives only one input (either only the bottom input or only the left input), it can get stuck with some other random input type for the other, which doesn't match and results in a type error. This is only subtly visible because the two input connectors don't have the same color, but that is hard to spot.

Instead, we want the Merge node to receive the `()` type when it's not connected to anything, and use the automatic type conversion system to convert from `()` to `T`, for example `()` to `List` if it needs to match with the other input of type `List`.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start by tracing the Merge node implementation and the automatic type conversion system to understand how an unconnected input is typed today. Determine whether representing the missing input as () and converting it to the other input's type is feasible, then document the approach and required tests before implementation begins.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
computer-graphics
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.