GraphiteEditor / GraphiteEditor/Graphite

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

未关闭
#3,776 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Graphene
主要语言
Rust
星标
27.2k
派生
1.3k
平均合并
20 小时 5 分钟
30 天内合并 PR
57

描述

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`.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先追踪 Merge 节点的实现和自动类型转换系统,以了解当前如何为未连接的输入确定类型。确定是否可以将缺失的输入表示为 () 并将其转换为另一个输入的类型,然后在开始实现之前记录实现方案和所需的测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
computer-graphics
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。